Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18859
| From | Stefan Weiss <krewecherl@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: I have debugged this javascript but I can't understand why the row marked with * give error |
| Date | 2013-03-13 12:52 +0100 |
| Organization | albasani.net |
| Message-ID | <khpp95$u78$1@news.albasani.net> (permalink) |
| References | <khpmos$sne$1@dont-email.me> |
On 2013-03-13 12:10, Tony wrote: > I'm new to Google map API > This line cause error > TextualZoomControl.prototype = new google.map.GControl(); > I have included the java script according to google recommendations > The error I get is runtime error in Javascript: It's not possible to get > property GControl for a reference that is undefined or null. > But according to the google API there is an object named GControl. > I have tried with these four alternatives > TextualZoomControl.prototype = new google.map.GControl(); > TextualZoomControl.prototype = new google.map.Control(); > TextualZoomControl.prototype = new GControl(); > TextualZoomControl.prototype = new Control(); > > I can't understand why it doesn't work. > Can somebody correct me about why it doesn't work ? It's google.maps, not google.map. This is an error you should have been able to find yourself: the error message already told you that you're trying to access a "GControl" property of something that is undefined or null. - stefan
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
I have debugged this javascript but I can't understand why the row marked with * give error "Tony" <tony.johansson@inport.com> - 2013-03-13 12:10 +0100 Re: I have debugged this javascript but I can't understand why the row marked with * give error Stefan Weiss <krewecherl@gmail.com> - 2013-03-13 12:52 +0100
csiph-web