MapOf

From CommonMap

Jump to: navigation, search

Static map image generator. Generating a image by combining map tiles.

parameters

The parameters are the same with OpenStreetMap's MapOf.

  • lat: latitude of the center.
  • long: longitude of the center. (you can use lon instead of it, too.)
  • z: zoom level
  • w: width of the image
  • h: height of the image
  • format: You can choice "png", "jpeg" or "gif". "png" is the default.
  • mlat: latitude of a marker.
  • mlon: latitude of a marker.

usage

Note: The URL is for demo. It will be changed.)

  • Just to get the image:

http://demo.tiles.commonmap.org/MapOf/?lat=-27.207&long=151.205&z=12&w=400&h=300&mlat=-27.20&mlon=151.20

  • Embedding it into your homepages or blogs:
<img src="http://demo.tiles.commonmap.org/MapOf/?lat=-27.207&long=151.205&z=12&w=400&h=300"
 width="400" height="300" alt="CommonMap" />

Development

Personal tools