Help:Mapping services

From Saintapedia
Jump to navigation Jump to search

Template:TOC

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
}}
Loading map...
<display_map>
Washington, DC
</display_map>
Loading map...


Map using the Google Maps service

See Google MapsWikipedia Logo.png for more information about the mapping service.

{{#display_map:
 Washington, DC
 |service=googlemaps
}}
Loading map...
<display_map service="googlemaps">
Washington, DC
</display_map>
Loading map...


Map using the OpenLayers service

See OpenLayersWikipedia Logo.png for more information about the mapping service.

{{#display_map:
 Washington, DC
 |service=openlayers 
}}
Loading map...
<display_map service="openlayers">
Washington, DC
</display_map>
Loading map...


Map using the LeafLet service

See LeafLet for more information about the mapping service.

{{#display_map:
 Washington, DC
 |service=leaflet
}}
Loading map...
<display_map service="leaflet">
Washington, DC
</display_map>
Loading map...

Related