How to use Google Maps on your page

From Buffalo Shows Wiki

Jump to: navigation, search

How to use Google Maps on your page.

  1. Edit your page.
  2. In a new browser window/tab, go to maps.google.com
  3. Type in the address of the place you want to map.
  4. Right-click on the address and center the location on the map.
  5. Get the latitude and longitude coordinates. Here's the little trick you have to do.
    1. When the address you want to find latitude and longitude for is dead center, copy and paste this code into your browser bar:

javascript:void(prompt('',gApplication.getMap().getCenter()));

  1. Write or copy the coordinates down in a convenient place.
  2. Use this code to generate your map.
     <widget type="googlemap">
<marker lat="42.95281042212598" lon="-78.86900424957275">
[http://www.sitandspin.com/ [[Sit and Spin]] 2531 Delaware Ave. Buffalo, NY 14216 716-873-1484]
</marker>
</widget>
  1. Replace the coordinates / information shown above with the appropriate information about the location you're mapping. The Sit and Spin map is shown as an example below.
  2. Save your page and your edit should come up!




Sometimes, finding the absolute center for your location can be tricky.

Sample Map

Personal tools