Template:Locate coords inline: Difference between revisions

From Bhamwiki
Jump to navigation Jump to search
m (Changed category)
m (New map type offered)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[http://maps.google.com/maps?ll={{{lat}}},{{{lon}}}&z={{{zoom|12}}}&q={{{lat}}},{{{lon}}} {{{text|map}}}]<noinclude>
[http://maps.google.com/maps?ll={{{lat}}},{{{lon}}}&z={{{zoom|12}}}&q={{{lat}}},{{{lon}}}&t={{{type|m}}} {{{text|map}}}]<noinclude>
<p><br></p>
<p><br></p>


Line 9: Line 9:
*'''zoom''' (0-17, recommended 10-16, defaults to 12)
*'''zoom''' (0-17, recommended 10-16, defaults to 12)
*'''text''' (link text, defaults to "map")
*'''text''' (link text, defaults to "map")
*'''type''' ("m" for map (default), "k" for satellite, "p" for terrain, "h" for hybrid)


Latitude and longitude must be entered in decimal representation, not degrees, minutes, and seconds.  [http://www.fcc.gov/mb/audio/bickel/DDDMMSS-decimal.html This page] can be used to do the conversion if needed.  You can also find coordinates using [http://earth.google.com/ Google Earth].  Keep in mind that Birmingham is located at coordinates north and west, meaning that the latitude is positive, but ''the longitude is negative''.
Latitude and longitude must be entered in decimal representation, not degrees, minutes, and seconds.  [http://www.fcc.gov/mb/audio/bickel/DDDMMSS-decimal.html This page] can be used to do the conversion if needed.  You can also find coordinates using [http://earth.google.com/ Google Earth].  Keep in mind that Birmingham is located at coordinates north and west, meaning that the latitude is positive, but ''the longitude is negative''.


'''Example:'''<br>
'''Example:'''<br>
. . . near the main gate of <nowiki>[[</nowiki>Oak Mountain State Park<nowiki>]]</nowiki> (<nowiki>{{</nowiki>Locate coords inline | lat = 33.320016 | lon = -86.778385 | zoom = 15<nowiki>}}</nowiki>)
. . . near the main gate of <nowiki>[[</nowiki>Oak Mountain State Park<nowiki>]]</nowiki> (<nowiki>{{</nowiki>Locate coords inline | lat = 33.320016 | lon = -86.778385 | zoom = 15 | type = h<nowiki>}}</nowiki>)


Will display:<br>
Will display:<br>
. . . near the main gate of [[Oak Mountain State Park]] ([http://maps.google.com/maps?ll=33.320016,-86.778385&q=33.320016,-86.778385&z=15 map])
. . . near the main gate of [[Oak Mountain State Park]] ([http://maps.google.com/maps?ll=33.320016,-86.778385&q=33.320016,-86.778385&z=15&t=h map])


[[Category:Mapping templates|Locate coords inline]]
[[Category:Mapping templates|Locate coords inline]]
</noinclude>
</noinclude>

Latest revision as of 09:52, 4 February 2009

map



Parameters:

  • lat (latitude as decimal)
  • lon (longitude as decimal)
  • zoom (0-17, recommended 10-16, defaults to 12)
  • text (link text, defaults to "map")
  • type ("m" for map (default), "k" for satellite, "p" for terrain, "h" for hybrid)

Latitude and longitude must be entered in decimal representation, not degrees, minutes, and seconds. This page can be used to do the conversion if needed. You can also find coordinates using Google Earth. Keep in mind that Birmingham is located at coordinates north and west, meaning that the latitude is positive, but the longitude is negative.

Example:
. . . near the main gate of [[Oak Mountain State Park]] ({{Locate coords inline | lat = 33.320016 | lon = -86.778385 | zoom = 15 | type = h}})

Will display:
. . . near the main gate of Oak Mountain State Park (map)