« Leaflet lines » : différence entre les versions
De Semantic MediaWiki - Sandbox
Aucun résumé des modifications |
(add) |
||
(4 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
{{#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}} | This example shows how to display lines on a map, e.g. for mapping a street to a map. Coordinate data are taken from [https://www.openstreetmap.org/way/27040489 here at OpenStreetMap]. | ||
== Syntax == | |||
<pre> | |||
{{#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 | |||
}} | |||
</pre> | |||
== Result == | |||
{{#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 | |||
}} | |||
[[Category:Leaflet examples]] |
Dernière version du 18 novembre 2019 à 22:27
This example shows how to display lines on a map, e.g. for mapping a street to a map. Coordinate data are taken from here at OpenStreetMap.
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 }}