Voici la marche à suivre pour géolocaliser un article :
- Pour centrer une carte sur un secteur précis, copiez-collez le code ci-dessous :
{{#display_map: Boulevard de la Liberté, Rennes}}
Exemple :
Chargement de la carte...
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","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":"","imageLayers":[],"locations":[{"text":"","title":"","link":"","lat":48.108625,"lon":-1.6841650499999998,"icon":""}],"imageoverlays":null}
- Pour afficher un point précis, choisissez puis copiez-collez l'un des codes ci-dessous :
{{#display_points: 9 Boulevard de la Liberté, Rennes}}
ou
{{#display_points: 48.107431,-1.673634}}
Exemple :
Chargement de la carte...
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","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":"","imageLayers":[],"locations":[{"text":"","title":"","link":"","lat":48.1073463,"lon":-1.6740736,"icon":""}],"imageoverlays":null}
Vous pouvez ensuite modifier les données de mise en forme de la carte : ajouter d'autres points, ajuster la taille de la carte, ou encore le zoom.
Exemple :
{{#display_points: Boulevard de la Liberté, Rennes; Rue Legraverend, Rennes |width=450|zoom=14}}
Ce qui vous permettra d'obtenir :
Chargement de la carte...
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"450px","height":"350px","centre":false,"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"zoom":14,"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":"","imageLayers":[],"locations":[{"text":"","title":"","link":"","lat":48.108625,"lon":-1.6841650499999998,"icon":""},{"text":"","title":"","link":"","lat":48.11722404798423,"lon":-1.6820588388966875,"icon":""}],"imageoverlays":null}