Sunday, November 20, 2011

Google Static Maps API V2

The Google Static Maps API lets you embed a Google Maps image on your web page without requiring JavaScript or any dynamic page loading. The Google Static Map service creates your map based on URL parameters sent through a standard HTTP request and returns the map as an image you can display on your web page.

The following example contains the URL of a static map image of downtown New York City, which is displayed below:

http://maps.googleapis.com/maps/api/staticmap?center=Williamsburg,Brooklyn,NY&zoom=13&size=500x500&scale=1&format=jpg&maptype=roadmap&language=thai&markers=color:blue|label:S|11206&markers=icon:http://www.iblogseeker.com/favicon.ico|C11211&path=color:0x0000ff|weight:5|40.707255,-73.952193|40.708718,-73.95627|40.710475,-73.955197|40.720949,-73.956614&sensor=false

you can pass the parameters such as center, zoom, size, format, maptype, language, markers, path and sersor.

You can see details here:

http://code.google.com/apis/maps/documentation/staticmaps/index.html

1 comment:

  1. Thanks for the post. Here’s a geocoding feature that will make your applications smarter and more interactive. Instead of displaying plain text, any address-centric data can be displayed on your site with a live map from Yahoo! or Google. Users will get more accurate information and be engaged in the process http://www.caspio.com/extend/platform-extensions/map-mashup.aspx

    ReplyDelete