On Sep 16, 4:59 am, André Lehmann <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I have obtained a Google maps ID linked to my site "www.iom-
> berlin.de". When I use this key to create a map as part of one HTML
> page of my site, it works. When I use the same key on several HTML
> pages of my site, it works if the html files are loaded from file://...
> (local disk).

The key check is skipped for the file:// protocol.


> In real life, calling viawww.iom-berlin.de(which the
> ID has been linked to),  it works only for one file. The three other
> files give an alert "Der auf dieser Website verwendete Google Maps API-
> Schlüssel wurde für eine andere Website registriert.Sie können 
> unterhttp://code.google.com/apis/maps/
> einen neuen Schlüssel für diese Website erzeugen." (appr.: "The Google
> Maps API key used in this web site was registered for a different
> site. You may create a new key for this web site.")
> OK:http://www.iom-berlin.de/html/de/anfahrt-0.htm
> Failure:http://www.iom-berlin.de/html/de/anfahrt-1.htm
> [ "alert(window.location.host);" yields "www.iom-berlin.de"
> ]
>
> Failure:http://www.iom-berlin.de/html/eng/anfahrt-0_e.htm
> Failure:http://www.iom-berlin.de/html/eng/anfahrt-1_e.htm
>
> Can anybody ehlp me to avoid this error?

Why do you have a line break in the line that includes the api?

        <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;
        key=ABQIAAAAUWJr_bl5yLjb3XmxBzauZhQeLAkmeItVkb0NI83kcZ96e-
vBlBRz2Ji2m0FS-r340vqA2SQnnjRuDw"
      type="text/javascript">

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to