Google Maps API3 made simple


/ Published in: JavaScript
Save to your folder(s)

This is a simple example of the google maps javascript API v3. If you want a map with a marker this is the minimum you need to do to get it done. Theres more talk about how it's all set up, and how to use the other static image map as well at the link.

To implement this you'll need an Google Maps API key to replace the one I used (which is for me site and won't work elsewhere due to how google set up the API keys). You can get one of those here:
http://code.google.com/apis/maps/signup.html

To use you simple need to include the script in the header, the div where you want the map to be located (size that as we want) then fill in the address variable.

Again more documentation, a script breakdown, and an example at the link. If you have a question feel free to post a comment.

URL: http://fatfolderdesign.com/284/javascript/working-with-the-google-maps-api-v3

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.