Re: Gd[d] has no properties + GMap is not defined errors
Wasn't it Ade who wrote:
>
>Hi.
>
>Ive just downloaded the basic sample startup code from google after
>getting my reg key. Tried using it and it doesnt work on any browser
>(Firefox / IE6) . I get these error all the time originating from the
>imported google script
>
>1. Gd[d] has no properties
>2. GMap is not defined
>
>Is there something i should know ? I would have expected a simple
>startup script to work. Has anyone else had this problem ?
There's a bug in maps.27a.js that produces these errors instead of
displaying 'The Google Maps API key used on this web site was registered
for a different web site. You can generate a new key for this web site
at http://www.google.com/apis/maps/' if winsow.location.host isn't of
the format *.co.*, *.com.* or *.off.*
If the key check fails, the API tries to check to see if the host is one
of a particular set of Google aliases, like maps.google.com.jp or
www.google.co.uk in which case it will allow the API to run with an
incorrect key. However, if your window.locatio.host is something like
www.domain.org.uk or www.domain.net.jp or 123.123.123.123, then the
associative array Gd[] has no entry for "org" or "net" or "123" and the
code crashes.
Basically, you need to use the correct API key.
--
The Blackpool Community Church Javascript Team
http://www.econym.demon.co.uk/googlemaps/
0 Comments:
Yorum Gönder
<< Home