Starting December 16, 2018 with the release of version 7.0.0 of
extension "Maps"Allows embedding of dynamic maps, geocoding and geospatial operations the support of the "OpenLayers" service was dropped. Use the "Leaflet" service instead. See
"Remove OpenLayers service."
This page shows examples for basic maps rendered with different map layers provided by OpenLayers.
- option / value
- layers / "osm-mapnik, osm-cyclemap" (default) or either "osm-mapnik" or "osm-cyclemap" (also reversed)
If the layers option is not provided "osm-mapnik, osm-cyclemap" will automatically be assumed. Note that the layer mentioned first will be shown first. The user will see a layerswitcher ("+") at the top right side of the map allowing to disable or switch the visible layers.
default layers - osm-mapnik, osm-cyclemap[edit]
{{#display_map: Berlin, Germany
|service=openlayers
}}
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":""}],"imageoverlays":null}
{{#display_map: Berlin, Germany
|service=openlayers
|layers=osm-mapnik, osm-cyclemap
}}
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":["osm-mapnik","osm-cyclemap"],"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":""}],"imageoverlays":null}
default layers - osm-cyclemap, osm-mapnik (reversed view)[edit]
{{#display_map: Berlin, Germany
|service=openlayers
|layers=osm-cyclemap, osm-mapnik
}}
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":["osm-cyclemap","osm-mapnik"],"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":""}],"imageoverlays":null}
layer - osm-cyclemap or osm-mapnik (exclusive view)[edit]
{{#display_map: Berlin, Germany
|service=openlayers
|layers=osm-cyclemap
}}
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":["osm-cyclemap"],"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":""}],"imageoverlays":null}