This page shows examples for choosing a mapping service for rendering maps.
- options / values
- service / leaflet (default) or googlemaps3
Note: Starting with version 4.0.0 of the Maps extension the default value was changed from googlemaps to leaflet.
If this option is not provided the default value will automatically be assumed.
Changing the default mapping service[edit]
To change the default mapping service you can add one of the following lines to your "LocalSettings.php" file at your convenience:
$egMapsDefaultService = 'googlemaps3';
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."
Map using the default service[edit]
{{#display_map:
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.510885,"lon":13.3989367,"icon":""}],"imageoverlays":null}
Map using the LeafLet service[edit]
{{#display_map:
Berlin, Germany
|service=leaflet
}}
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=googlemaps
}}
Loading map...
{"type":"ROADMAP","minzoom":false,"maxzoom":false,"types":["ROADMAP","SATELLITE","HYBRID","TERRAIN"],"mappingservice":"googlemaps","width":"auto","height":"350px","centre":false,"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"visitedicon":"","wmsoverlay":false,"zoom":14,"layers":[],"controls":["pan","zoom","type","scale","streetview","rotate"],"zoomstyle":"DEFAULT","typestyle":"DEFAULT","autoinfowindows":false,"resizable":false,"kmlrezoom":false,"poi":true,"cluster":false,"clustergridsize":60,"clustermaxzoom":20,"clusterzoomonclick":true,"clusteraveragecenter":true,"clusterminsize":2,"imageoverlays":[],"kml":[],"gkml":[],"searchmarkers":"","fullscreen":false,"scrollwheelzoom":false,"locations":[{"text":"","title":"","link":"","lat":52.510885,"lon":13.3989367,"icon":""}]}