The problem is that the Google API key validation is performed against 
the Javascript window.location.host variable. Some browsers (e.g. MSIE 
and Chrome) return "www.xn--vrmlandsdelen-bfb.se" and others (e.g. 
Firefox) return "www.värmlandsdelen.se".

The normal solution is to register both keys and switch between them 
depending on the value of window.location.host

   http://mapki.com/wiki/Punycode

It looks like Google have now gone part of the way to handling the 
problem, since your map actually works, but they've not switched off the 
alert. And, according to a very recent change to that mapki page, you 
can't register a key for a domain that contains an umlaut.


A very ugly workround would be to overwrite the alert() function with a 
function that does nothing.

   function alert() {}

So when the API performs alert("The Google Maps API key used on this web 
site was registered for a different web site") nothing gets displayed.


See also the recent activity in Issue 12:

   http://code.google.com/p/gmaps-api-issues/issues/detail?id=12

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~---------~--~----~------------~-------~--~----~
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