ഫലകം:Slippymap
{{#multimaps: 51.3432699, 0.52700328 | width = 400px | height = 400px | zoom = 12 | service = Leaflet }}
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 | width = 200px | height = 200px | zoom = 15 | service = leaflet }} | {{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=leaflet |marker=no |text= some beautiful map}}
|
CyclOSM | width = 200px | height = 200px | zoom = 15 | service = cyclosm }} | {{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=cyclosm |marker=no}}
|
Cycle Map | width = 200px | height = 200px | zoom = 15 | service = cycle }} | {{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=cycle |marker=no}}
|
Transport Map | width = 200px | height = 200px | zoom = 15 | service = transport }} | {{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=transport |marker=no}}
|
ÖPNVKarte | width = 200px | height = 200px | zoom = 15 | service = oepnv }} | {{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=oepnv |marker=no}}
|
Humanitarian | width = 200px | height = 200px | zoom = 15 | service = 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
<templatedata> { "params": { "lat": { "label": "latitude", "type": "number", "required": true }, "lon": { "label": "longitude", "type": "number", "required": true }, "zoom": { "label": "zoom level", "description": "May be 1 (world) to 18 (most detailed)", "type": "number", "default": "12" }, "width": { "label": "map width", "type": "number", "default": "400" }, "height": { "label": "map height", "type": "number", "default": "400" }, "text": { "description": "Optional text to display under map", "type": "content" }, "marker": { "label": "display marker", "description": "use \"no\" to remove the pin, otherwise it is shown in the given position", "example": "no", "type": "line", "suggestedvalues": [ "no" ] }, "layer": { "label": "map style", "description": "Map style choose. Fallbacks to leaflet (default)", "suggestedvalues": [ "leaflet", "cyclosm", " cycle", " transport", "oepnv", "humanitarian" ], "default": "leaflet" }, "alignment": { "label": "map alignment", "type": "line", "suggestedvalues": [ "left", "center", "right" ], "autovalue": "center" } }, "description": "A simple template to aid in the implementation of slippymaps.", "paramOrder": [ "lat", "lon", "zoom", "width", "height", "alignment", "text", "marker", "layer" ] } </templatedata>
മുകളിൽ കാണുന്ന വിവരണം ഫലകം:Slippymap/doc എന്ന ഉപതാളിൽ നിന്ന് ഉൾപ്പെടുത്തിയിട്ടുള്ളതാണ്. (തിരുത്തുക | നാൾവഴി) താങ്കൾക്ക് പരീക്ഷണങ്ങൾ ഫലകത്തിന്റെ എഴുത്തുകളരി (നിർമ്മിക്കുക) താളിലോ testcases (നിർമ്മിക്കുക) താളിലോ നടത്താവുന്നതാണ്. ദയവായി വർഗ്ഗങ്ങളും ബഹുഭാഷാകണ്ണികളും /വിവരണം ഉപതാളിൽ മാത്രം ഇടുക. ഈ ഫലകത്തിന്റെ ഉപതാളുകൾ. |