Help:Mapping services
It has been suggested that this page be merged with Help:Maps (Services). (Discuss) |
This page shows examples for choosing a mapping service for rendering maps.
- options / values
- service / leaflet (default), openlayers or googlemaps [[#ref_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
To change the default mapping service you can add one of the following lines to your "LocalSettings.php" file at your convenience:
$egMapsDefaultService = 'openlayers';
or
$egMapsDefaultService = 'googlemaps';
Map using the default mapping service
{{#display_map: Washington, DC }}
<display_map> Washington, DC </display_map>
Map using the Google Maps service
See Google Maps for more information about the mapping service.
{{#display_map: Washington, DC |service=googlemaps }}
<display_map service="googlemaps"> Washington, DC </display_map>
Map using the OpenLayers service
See OpenLayers for more information about the mapping service.
{{#display_map: Washington, DC |service=openlayers }}
<display_map service="openlayers"> Washington, DC </display_map>
Map using the LeafLet service
See LeafLet for more information about the mapping service.
{{#display_map: Washington, DC |service=leaflet }}
<display_map service="leaflet"> Washington, DC </display_map>
Related
|