JavaScript API for Google Maps V3 not working on localhost

im using google map markers with an info window, but when you run the script in the browser, only the map image is displayed without any function. Can someone tell me if I need to generate an api key for this, this is what I'm trying to run on localhost, see link

+3
source share
2 answers

Delete line:

<script src="http://maps.gstatic.com/intl/en_us/mapfiles/api-3/5/5/main.js" type="text/javascript"></script>

and you are good to go.

0
source

Google Maps (and many other client-server services) work only through HTTP .

Switching to is file://C:\Users\Greg\Documents and Settings\My Documents\WEBSITES\CoolSite\Index.htmlgreat for displaying HTML, but any communication between the client and server will fail.

- - http://coolsite.localhost ( http:// ://).

-2

All Articles