Template:Map: Difference between revisions

From Cvillepedia
Jump to navigation Jump to search
m (putting it back)
(This template is being disabled until we fix the Google Map widget)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#widget:Google Maps
<includeonly><!--{{#widget:Google Maps
|key=ABQIAAAAojBY5tzU0lNaaG1NR11yGBQuKIzZ79u58OXcOlLN1k3VUdgk4hQ8nlpg30TDT_dNcrCg3U2s-aQ5eg
|key=ABQIAAAAojBY5tzU0lNaaG1NR11yGBQuKIzZ79u58OXcOlLN1k3VUdgk4hQ8nlpg30TDT_dNcrCg3U2s-aQ5eg
|lat={{{lat}}}
|lat={{{lat}}}
Line 9: Line 9:
|maptypecontrol=yes
|maptypecontrol=yes
|smallmapcontrol=yes
|smallmapcontrol=yes
}}</includeonly><noinclude>{{Map/doc}}</noinclude>
}}--></includeonly><noinclude>{{Map/doc}}</noinclude>

Latest revision as of 10:07, 23 June 2018

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