Depth Reporting

Thursday, February 21, 2008

Google Static Maps API

You can now generate a static Google Map just by constructing a URL. There's a wizard to make it even easier. These are image maps — not the zoomable, clickable Google Maps you typically see — which Google says are ideal for multimedia-heavy Web sites because they'll load fast.

The URL to make the map above, which shows the location of the CJ, looks like this:

http://maps.google.com/staticmap?center=38.2463,-85.7608&zoom=9&size=200x200&maptype=mobile\&markers=38.2463,-85.7608,greenc|&key=ABQIAAAAinb4lNGZMYVUNPnvHp7HRRT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSUeiWoopzbMAgQgXOhmRYBQWWYaA

Just stick it in an image tag and you're done.

'Course, if you do this, you will get a map that looks, as a certain programmer/journalist points out, "so 2005."

0 comments: