Template:Slippymap
Jump to navigation
Jump to search
This documentation is transcluded from Template:Slippymap/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
This template has a sandbox (Edit) for editors to experiment.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
This template has a sandbox (Edit) for editors to experiment.
A simple template to aid in the implementation of slippymaps. Utilises the Kartographer extension.
{{slippymap |lat= required latitude |lon= required longitude |zoom= zoom level (12 default) |width= width (400 default) |height= height (400 default) |layer= layer ("leaflet" default (aka. Standard tile layer), "cyclosm", "cycle", "transport", "oepnv" or "humanitarian") |marker= no (use "no" to remove the pin, otherwise it is shown in the given position) |alignment= left ("center" default, possible input values "left", "center", "right") |text= some text (no text by default) }}
Examples
Standard / OSM carto | {{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=leaflet |marker=no |text= some beautiful map}}
| |
CyclOSM | {{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=cyclosm |marker=no}}
| |
Cycle Map | {{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=cycle |marker=no}}
| |
Transport Map | {{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=transport |marker=no}}
| |
ÖPNVKarte | {{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=oepnv |marker=no}}
| |
Humanitarian | {{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=humanitarian |marker=no}}
|
Restriction with Kartographer extension
The following setting does not work currently
- no layers selectable
- You can not select which layer will be displayed per default on the wiki page. It is always standard tile layer. In other words, the several images you see above are all the same.
See also
- {{Vector map}}
- {{Map}}
- Wiki:Maps
External links
- Bboxfinder: easier find centre lat lon coordinates
A simple template to aid in the implementation of slippymaps.
Parameter | Description | Type | Status | |
---|---|---|---|---|
latitude | lat | no description | Number | required |
longitude | lon | no description | Number | required |
zoom level | zoom | May be 1 (world) to 18 (most detailed)
| Number | optional |
map width | width | no description
| Number | optional |
map height | height | no description
| Number | optional |
map alignment | alignment | no description
| Line | optional |
text | text | Optional text to display under map | Content | optional |
display marker | marker | use "no" to remove the pin, otherwise it is shown in the given position
| Line | optional |
map style | layer | Map style choose. Fallbacks to leaflet (default)
| Unknown | optional |