|
|
(4 versions intermédiaires par le même utilisateur non affichées) |
Ligne 1 : |
Ligne 1 : |
| == Issue == | | == Issue == |
| | '''How to make two locations with the same coordinates distinguisable''' [[CiteRef::GitHubSM65]] |
|
| |
|
| '''Make two locations with the same coordinates distinguisable''' [[CiteRef::GitHubSM65]]
| | === format "map" === |
| | |
| == format "map" == | |
| <pre> | | <pre> |
| {{#ask: | | {{#ask: |
Ligne 19 : |
Ligne 18 : |
| }} | | }} |
|
| |
|
| == format "ol" == | | === format "ol" === |
| {{#ask: | | {{#ask: |
| [[Category:Location]] | | [[Category:Location]] |
Ligne 33 : |
Ligne 32 : |
| }} | | }} |
|
| |
|
| | | == Solution == |
| == using marker clustering == | | '''use marker clustering''' |
| <pre> | | <pre> |
| {{#ask: | | {{#ask: |
Ligne 41 : |
Ligne 40 : |
| |?Has coordinates | | |?Has coordinates |
| |format=map | | |format=map |
| |markercluster = on | | |markercluster=on |
| |zoom = 2 | | |zoom = 2 |
| }} | | }} |
Ligne 50 : |
Ligne 49 : |
| |?Has coordinates | | |?Has coordinates |
| |format=map | | |format=map |
| |markercluster = on | | |markercluster=on |
| |zoom = 2 | | |zoom = 2 |
| }} | | }} |
Ligne 56 : |
Ligne 55 : |
| [[Category:Location| ]] | | [[Category:Location| ]] |
| [[Category:Issue]] | | [[Category:Issue]] |
| [[Category:Semantic Maps example]] | | [[Category:Maps examples]] |
Issue
How to make two locations with the same coordinates distinguisable 1
format "map"
{{#ask:
[[Category:Location]]
[[Has coordinates::+]]
|?Has coordinates
|format=map
}}
Chargement de la carte...
{"format":"leaflet","minzoom":false,"maxzoom":false,"limit":250,"offset":0,"link":"all","sort":[""],"order":[],"headers":"show","mainlabel":"","intro":"","outro":"","searchlabel":"... autres r\u00e9sultats","default":"","import-annotation":false,"width":"auto","height":"350px","centre":false,"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"zoom":false,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","showtitle":true,"hidenamespace":true,"template":"","userparam":"","activeicon":"","pagelabel":false,"ajaxcoordproperty":"","ajaxquery":"","locations":[{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Location_1\" title=\"Location 1\"\u003ELocation 1\u003C/a\u003E\u003C/b\u003E","title":"Location 1","link":"","lat":52.516666666667,"lon":13.4,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Location_2\" title=\"Location 2\"\u003ELocation 2\u003C/a\u003E\u003C/b\u003E","title":"Location 2","link":"","lat":52.516666666667,"lon":13.4,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Location_3\" title=\"Location 3\"\u003ELocation 3\u003C/a\u003E\u003C/b\u003E","title":"Location 3","link":"","lat":47.0707,"lon":15.4395,"icon":""}],"imageLayers":[]}
format "ol"
- Location 1 (Has coordinates: 52° 31' 0.00" N, 13° 24' 0.00" E)
- Location 2 (Has coordinates: 52° 31' 0.00" N, 13° 24' 0.00" E)
- Location 3 (Has coordinates: 47° 4' 14.52" N, 15° 26' 22.20" E)
Solution
use marker clustering
{{#ask:
[[Category:Location]]
[[Has coordinates::+]]
|?Has coordinates
|format=map
|markercluster=on
|zoom = 2
}}
Chargement de la carte...
{"format":"leaflet","minzoom":false,"maxzoom":false,"limit":250,"offset":0,"link":"all","sort":[""],"order":[],"headers":"show","mainlabel":"","intro":"","outro":"","searchlabel":"... autres r\u00e9sultats","default":"","import-annotation":false,"width":"auto","height":"350px","centre":false,"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"zoom":2,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":true,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","showtitle":true,"hidenamespace":true,"template":"","userparam":"","activeicon":"","pagelabel":false,"ajaxcoordproperty":"","ajaxquery":"","locations":[{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Location_1\" title=\"Location 1\"\u003ELocation 1\u003C/a\u003E\u003C/b\u003E","title":"Location 1","link":"","lat":52.516666666667,"lon":13.4,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Location_2\" title=\"Location 2\"\u003ELocation 2\u003C/a\u003E\u003C/b\u003E","title":"Location 2","link":"","lat":52.516666666667,"lon":13.4,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Location_3\" title=\"Location 3\"\u003ELocation 3\u003C/a\u003E\u003C/b\u003E","title":"Location 3","link":"","lat":47.0707,"lon":15.4395,"icon":""}],"imageLayers":[]}