(JavaScript) Google Maps API v3 made simple

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.

  1.  
  • Posted by on January 1st, 1970
This entry was posted in JavaScript and tagged , , , , , , , , . Bookmark the permalink. Trackbacks are closed, but you can post a comment.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Why ask?