Template:Googlemap/doc

Watchers

Usage

To add a link to a Google Map to a page, use the following:

{{googlemap|latitude|longitude|link text|label+with+plus+signs+for+spaces|zoom level|map type}}

where link text, label, zoom level, and map type are optional parameters.

Coordinates can be entered either as degrees-minutes-seconds or as decimal-degrees.

  • To enter coordinates in degrees-minutes-seconds, separate the pieces by plus signs (e.g., "40+44+55").
  • To enter cordinates in decimal-degrees, enter decimal numbers (e.g., "40.748").

Enter negative numbers for South latitude and West longitude.

Map type is

  • m for normal map
  • k for satellite map
  • h for hybrid map
  • p for terrain map

Note: You can't use the word "to" in the label.

Note: As of Nov 2024, the string passed by the template is out-of-date, causing Google Maps to ignore the last 3 parameters. The map displayed is the satellite view.

Examples

To link to a map centered on the Empire State Building (coordinates 40 degrees 44 minutes 55 seconds North, 73 degrees 59 minutes 8 seconds West), you would enter:

{{googlemap|40+44+55|-73+59+8|Empire State Building}}

or the equivalent in decimal:

{{googlemap|40.748611|-73.985556|Empire State Building}}

See Also