Welcome to the Virtual Education Wiki ~ Open Education Wiki
Test Displaying Leaflet maps
From Virtual Education Wiki
Basic syntax
{{#display_map:center=Brandenburg Gate, Berlin, Germany}}
Loading map...
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"auto","height":"350px","centre":{"text":"","title":"","link":"","lat":52.5162699,"lon":13.377703399031432,"icon":""},"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":[],"imageoverlays":null}
Customization
Leaflet maps can be customized using various parameters.
{{#display_map:center=Berlin|width=400|height=250}}
Loading map...
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"400px","height":"250px","centre":{"text":"","title":"","link":"","lat":52.510885,"lon":13.3989367,"icon":""},"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":[],"imageoverlays":null}
Displaying data
Markers
{{#display_map:Brandenburg Gate, Berlin, Germany}}
Loading map...
{"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":52.5162699,"lon":13.377703399031432,"icon":""}],"imageoverlays":null}
Multiple locations
{{#display_map:Berlin; Brussels; Paris; Amsterdam; Rome}}
Loading map...
{"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":52.510885,"lon":13.3989367,"icon":""},{"text":"","title":"","link":"","lat":50.8465573,"lon":4.351697,"icon":""},{"text":"","title":"","link":"","lat":48.8588897,"lon":2.3200410217200766,"icon":""},{"text":"","title":"","link":"","lat":52.3730796,"lon":4.8924534,"icon":""},{"text":"","title":"","link":"","lat":41.8933203,"lon":12.4829321,"icon":""}],"imageoverlays":null}
{{#display_map:Cambridge; March; Wisbech; Peterborough; Ely; Newmarket; Stowmarket}}
Loading map...
{"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":52.2055314,"lon":0.1186637,"icon":""},{"text":"","title":"","link":"","lat":49.3597062,"lon":17.3094202,"icon":""},{"text":"","title":"","link":"","lat":52.6651733,"lon":0.1606824,"icon":""},{"text":"","title":"","link":"","lat":52.5725769,"lon":-0.2427336,"icon":""},{"text":"","title":"","link":"","lat":52.3990199,"lon":0.262039,"icon":""},{"text":"","title":"","link":"","lat":44.056258,"lon":-79.461708,"icon":""},{"text":"","title":"","link":"","lat":52.1878147,"lon":0.9973428,"icon":""}],"imageoverlays":null}
>> Main Page