Jump to content
സഹായം

"ഫലകം:Slippymap/doc" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

2,088 ബൈറ്റുകൾ കൂട്ടിച്ചേർത്തിരിക്കുന്നു ,  8 മാർച്ച് 2024
No edit summary
en>Jidanni
വരി 2: വരി 2:
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->


A simple template to aid in the implementation of slippymaps. Utilises [[w:mw:Extension:MultiMaps|MultiMaps extension]].
A simple template to aid in the implementation of slippymaps. Utilises the [[w:mw:Help:Extension:Kartographer|Kartographer extension]].


<pre>  
<pre>  
{{slippymap
{{slippymap
|lat=   required latitude
|lat=       required latitude
|lon=   required longitude
|lon=       required longitude
|zoom=   zoom level        (18 default)
|zoom=       zoom level        (12 default)
|width= width            (400 default)
|width=     width            (400 default)
|height= height            (400 default)
|height=     height            (400 default)
|layer= layer            ("leaflet" default (aka. Standard tile layer), "cyclosm", "cycle", "transport", "oepnv" or "humanitarian")
|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)
|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)
}}
}}
</pre>
</pre>
വരി 19: വരി 21:
{| class="wikitable"
{| class="wikitable"
| [[Standard tile layer|Standard / OSM carto]]
| [[Standard tile layer|Standard / OSM carto]]
| {{slippymap |lat=34.8 |lon=-111.76460 |zoom=15 |width=200 |height=200 |layer=leaflet |marker=no}}
| {{slippymap |lat=34.8 |lon=-111.76460 |zoom=15 |width=200 |height=200 |layer=leaflet |marker=no |text= some beautiful map}}
| <code><nowiki>{{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=leaflet |marker=no}}</nowiki></code>
| <code><nowiki>{{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=leaflet |marker=no |text= some beautiful map}}</nowiki></code>
|-
|-
| [[CyclOSM|CyclOSM]]
| [[CyclOSM|CyclOSM]]
വരി 42: വരി 44:
| <code><nowiki>{{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=humanitarian |marker=no}}</nowiki></code>
| <code><nowiki>{{slippymap |lat=34.8 |lon=-111.76460 |zoom=18 |width=200 |height=200 |layer=humanitarian |marker=no}}</nowiki></code>
|}
|}
== Restriction with [[w:mw:Extension:Kartographer|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 ==
* {{tl|Vector map}}
* {{tl|Map}}
* [[Wiki:Maps]]
== External links ==
* Bboxfinder: [http://bboxfinder.com easier find centre lat lon coordinates]


<includeonly>
<includeonly>
വരി 47: വരി 62:
[[Category:Templates for Maps|Slippymap]]
[[Category:Templates for Maps|Slippymap]]
</includeonly>
</includeonly>
 
<templatedata>
== See also ==
{
* Bboxfinder: [http://bboxfinder.com easier find centre lat lon coordinates]
"params": {
* [[Wiki:Maps]]
"lat": {
* {{T|Map}}
"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>
അജ്ഞാത ഉപയോക്താവ്
"https://schoolwiki.in/പ്രത്യേകം:മൊബൈൽവ്യത്യാസം/2507773" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്