Template:Map

From Cvillepedia
Jump to: navigation, search

The Map template is a shortcut to use the google map widget.

Simple example

All you need to know to create a map is a latitude and longitude.

{{Map|lat=38.024261|lng=-78.497357}}

Hint: Once you've found the place you want to map on google maps, use the "link" button and copy the information from the "Paste link in email or IM" box. There will be a section near the end of this that looks like "ll=38.000762,-78.522377". These two numbers are the lat and long, respectively.

Required parameters

  • Lat: Latitude.
  • Lng: Longitude.

Optional parameters

  • zoom: the zoom level; higher numbers are zoomed in closer to the mark, lower numbers zoom out. Default = 16.
  • width: width of the map box as displayed on the page, measured in pixels. Default = 400.
  • height: width of the map box as displayed on the page, measured in pixels. Default = 250.

See also