Template:LayerMap
Jump to navigation
Jump to search
Documentation
Displays a map with multiple markers at given coordinates in different, toggleable layers
Parameters
all are optionally
Parameter | default | description |
---|---|---|
map | The Island | Name of the map (The Island, The Center, Scorched Earth) |
mapFile | Map The Island.jpg | Filename of the map |
mapsize | 300 | mapsize in px |
markersize | 10 | markersize in px |
markercolor | #f30 | |
markericon | Filename of the default-icon | |
opacity | 1 | opacity of markers |
text | is displayed under the map | |
float | where the map floats (left / right) | |
borderCoordT | 7.2 | Coords of Top |
borderCoordR | 92.8 | Coords of Right |
borderCoordB | 92.8 | Coords of Bottom |
borderCoordL | 7.2 | Coords of Left |
Locations are given as comma-separated-values and have to be in this order (only lat and lon are mandatory) lat, lon, markersize, markercolor, markertooltip, layername, markericon[, markericon2[, markericon3...]]
. Leave parameters empty for the default. E.g. write 20,50,,green
for a green marker at 20-50 with the default size. Markers for one layer have to be consecutive.
- Commas are not allowed in the title-text (it breaks the format)
- An equal-sign has to be written like
{{=}}
, a vertical bar / pipe has to be written like{{!}}
.
Example
{{LayerMap|30,50,,,,POI|20,80,20,,,POI|40,70,,green,,POI-green|80,30,10,green,,POI-green}}
POI POI-green |
{{LayerMap|30,50,,yellow,,POI|20,80,20,,,POI|40,70,,green,,POI-green|80,30,10,green,,POI-green|text=so many spots|80,50,30,yellow,I'm a yellow marker!|opacity=0.7|50,50,5|markercolor=green|mapsize=200|10,10,5}}
so many spots |
POI POI-green |