Width and height[edit]
Setting the with and height of a map to absolute values in px.
{{#display_map:
Moscow, Russia
|width=500
|height=300
}}
Loading map...
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"500px","height":"300px","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":55.625578,"lon":37.6063916,"icon":""}],"imageoverlays":null}
Setting the with of a map to a relative value in % of container width (in this case the page).
{{#display_map:
Moscow, Russia
|width=75%
}}
Loading map...
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"75%","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":55.625578,"lon":37.6063916,"icon":""}],"imageoverlays":null}
Zoom and centre[edit]
{{#display_map:
Moscow, Russia
|centre=Brussels
|zoom=2
}}
Loading map...
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"auto","height":"350px","centre":{"text":"","title":"","link":"","lat":50.8465573,"lon":4.351697,"icon":""},"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":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[],"locations":[{"text":"","title":"","link":"","lat":55.625578,"lon":37.6063916,"icon":""}],"imageoverlays":null}
{{#display_map:
Moscow, Russia;New York City; Brussels, Belgium
|icon=Green_marker.png
}}
Loading map...
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"auto","height":"350px","centre":false,"title":"","label":"","icon":"Green_marker.png","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":55.625578,"lon":37.6063916,"icon":"/w/images/c/ce/Green_marker.png"},{"text":"","title":"","link":"","lat":40.7127281,"lon":-74.0060152,"icon":"/w/images/c/ce/Green_marker.png"},{"text":"","title":"","link":"","lat":50.8465573,"lon":4.351697,"icon":"/w/images/c/ce/Green_marker.png"}],"imageoverlays":null}