map works on localhost but on IIS need new key

525 views
Skip to first unread message

Hiyasat

unread,
Dec 26, 2010, 3:59:29 AM12/26/10
to google-map...@googlegroups.com
Hi all,

i'm new with Google-Maps, what im try to do is use the api v3 on my website and everything is working fine on localhost.
but when i run the page on IIS an alert ask me to get new key for the api and i get new key but the error keeps show up .

<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false;key=GoogleKey" type="text/javascript"></script> 

thanks in advance

Chris Broadfoot

unread,
Dec 26, 2010, 7:49:24 AM12/26/10
to google-map...@googlegroups.com
You're requesting the v2 API using that code.

You can load v3 by using this code:

If you actually want v2, then you should be posting this to the v2 user group (not this group, which is the v3 group), along with a link to your map.

When you run on anything but localhost (or from a file), you'll need to use a valid key generated for the domain you're running the web server on. You can generate a key here:

Chris

--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply all
Reply to author
Forward
0 new messages