Extension:MultiMaps/Documentation

To add a map to a wiki page need to write the magic word  and specify the necessary parameters.

The syntax for the magic word  is:


 * - it may be a element to be added to the card ('marker' by default), or the property of the map
 * - is data that is assigned to the specified parameter

General
To display a map at N10° and E10°:

Map elements
To add an element to the card, use the following syntax:


 * - should be the name one of the following elements: Marker, Line, Polygon, Rectangle, Circle.
 * - parameters required to display the item on the map, such as coordinates, pop-up text, colors, etc...

- is not case sensitive, can be both singular and the plural (marker, markers)

- can be a single item and the items list. List separator of items specified in the variable, the default is ";"

Parameters in  are separated by a character specified in the variable , the default is "~".

The first and mandatory parameter is the geographical coordinates of the element. They can be written as a decimal fraction degrees or specifying the minutes and seconds (55.755831, 37.617673 or 55°45'20.9916", 37°37'3.6228"). If sides of the world is not specified, the default is the first north, second east. Sides of the world specified the corresponding character before or after the value (N55.755831°, E37.617673° or 55°45'20.9916"N, 37°37'3.6228"E)

Latitude and longitude values ​​are separated by a character specified in the variable, the default is ",".

Geographic coordinates can be a delimited list of values ​​specified in the variable, the default is ":".

Instead of geographic coordinates, you can specify the address. This address will be converted to the coordinates using the appropriate Geocoding Service. Examples: Leaflet, Google, Yandex

The other parameters can also be specified without a name, if they go in the order of priority set. Parameter has the following syntax: "param_name=param_value".

For example, you can set the marker icon in the following ways:

Marker
Syntax:

Samples

Line
Syntax:

Samples

Polygon
Syntax:

Samples

Rectangle
Syntax:

Samples

Circle
Syntax:

Samples

Map properties
You can set the following properties for the map:
 * service
 * height
 * width
 * zoom
 * maxzoom
 * minzoom
 * center

Service
At the moment, you can display a map with the map services leaflet (openstreetmap.org), google and yandex

Syntax:

Samples

List of available services is defined in the variable

Height
The height of the map window can be specified using.

Width
The width of the map display is specified using.

Zoom
Zoom specifies the zoom level of the map when the page is presented to the user. The user can then change it using and  or the mouse wheel. OpenStreetMap tiles are available from zoom 0 through 19 for instance.

Maxzoom/Minzoom
This property allows the editing user to limit the available zoom range for a page reader setting a minimum and a maximum.