Help:Google Maps

From ISOC Wiki, the ultimate monger encyclopedia!
Jump to: navigation, search

Tag Attributes

This extension defines a {{#googlemap}} tag. Legal attributes are:

Parameter name Parameter Default Parameter description Parameter type
lat REQUIRED Latitude of map central point Floating point number in range [-90..90]
lng REQUIRED Longitude of map central point Floating point number in range [-180..180]
zoom Default = 15 Initial value of map zoom Integer number in range [0..21]
align Default = right Optional alignment of the map container String left or right.
width Default = 800px Width of map container Number of px, em or % (default is px, when units name is omitted)
height Default = 600px Height of map container Number of px or em (default is px, when units name is omitted)
caption none Optional caption of the map Wikitext (can be multiline)
searchbox Default = 0/Off Optional SearchBox Integer 1 to turn on places SearchBox
edit Default = 0/Off Optional map edit mode Integer 1 to turn on map editor
Unnamed parameter none Definition of marker lat, lng description, where lat / lng are floating point numbers and description is multiline wikitext
When entering source wikitext of tag manually, do not forget to escape pipe character in some way. When entering description in the editor, non-lexical vertical pipe characters will be escaped automatically.

Syntax for Google Maps (Edit Mode)

{{#googlemap:
lat=55.77617968574799|lng=37.62384265733546|zoom=15|align=left|width=100%|height=450px|searchbox=1|edit=1
|caption=Hello, [[world]]!
* How
* are
* you?
|55.774195, 37.617209 Entrance [[from one side]]

There can be paragraphs.
|55.777096, 37.627416 Exit [[into another side]]

Yet another paragraph.
}}

{{#googlemap: lat=55.77617968574799|lng=37.62384265733546|zoom=15|align=left|width=100%|height=450px|searchbox=1|edit=1 |caption=Hello, world!

  • How
  • are
  • you?

|55.774195, 37.617209 Entrance from one side

There can be paragraphs. |55.777096, 37.627416 Exit into another side

Yet another paragraph. }}

Syntax for Google Maps (Permanent Mode)

{{#googlemap:lat=55.77617968574799|lng=37.62384265733546|zoom=15|align=left|width=100%|height=450px|searchbox=1
|caption=Hello, [[world]]!
* How
* are
* you?
|55.774195, 37.617209 Entrance [[from one side]]

There can be paragraphs.
|55.777096, 37.627416 Exit [[into another side]]

Yet another paragraph.
}}

{{#googlemap:lat=55.77617968574799|lng=37.62384265733546|zoom=15|align=left|width=100%|height=450px|searchbox=1 |caption=Hello, world!

  • How
  • are
  • you?

|55.774195, 37.617209 Entrance from one side

There can be paragraphs. |55.777096, 37.627416 Exit into another side

Yet another paragraph. }}