« Leaflet lines » : différence entre les versions
De Semantic MediaWiki - Sandbox
m (Kghbln a déplacé la page Lines vers Leaflet lines sans laisser de redirection : namefix) |
(form) |
||
Ligne 4 : | Ligne 4 : | ||
<pre> | <pre> | ||
{{#display_map: | {{#display_map: | ||
|lines=50.5429865,7.0949426: 50.5432008,7.0954376: 50.5434011,7.0959061: 50.5434990,7.0963088: 50.5435581,7.0967051: 50.5436531,7.0971812: 50.5438098,7.0976825: 50.5438945,7.0978234: 50.5440987,7.0979196 | |lines=50.5429865,7.0949426 : 50.5432008,7.0954376 : 50.5434011,7.0959061 : 50.5434990,7.0963088 : 50.5435581,7.0967051 : 50.5436531,7.0971812 : 50.5438098,7.0976825 : 50.5438945,7.0978234 : 50.5440987,7.0979196 | ||
|service=leaflet | |service=leaflet | ||
|controls=panzoom,mouseposition | |controls=panzoom,mouseposition | ||
Ligne 16 : | Ligne 16 : | ||
== Result == | == Result == | ||
{{#display_map: | {{#display_map: | ||
|lines=50.5429865,7.0949426: 50.5432008,7.0954376: 50.5434011,7.0959061: 50.5434990,7.0963088: 50.5435581,7.0967051: 50.5436531,7.0971812: 50.5438098,7.0976825: 50.5438945,7.0978234: 50.5440987,7.0979196 | |lines=50.5429865,7.0949426 : 50.5432008,7.0954376 : 50.5434011,7.0959061 : 50.5434990,7.0963088 : 50.5435581,7.0967051 : 50.5436531,7.0971812 : 50.5438098,7.0976825 : 50.5438945,7.0978234 : 50.5440987,7.0979196 | ||
|service=leaflet | |service=leaflet | ||
|controls=panzoom,mouseposition | |controls=panzoom,mouseposition |
Version du 18 novembre 2019 à 21:55
This example shows how to display lines on a map, e.g. for mapping a street to a map.
Syntax
{{#display_map: |lines=50.5429865,7.0949426 : 50.5432008,7.0954376 : 50.5434011,7.0959061 : 50.5434990,7.0963088 : 50.5435581,7.0967051 : 50.5436531,7.0971812 : 50.5438098,7.0976825 : 50.5438945,7.0978234 : 50.5440987,7.0979196 |service=leaflet |controls=panzoom,mouseposition |zoom=17 |height=400 |width=400 |copycoords=yes }}