Maps examples/Choosing a mapping service

From semantic-mediawiki.org
Jump to: navigation, search
Maps examplesMaps examples/Choosing a mapping service
Table of Contents

This page shows examples for choosing a mapping service for rendering maps.

options / values
service / leaflet (default), openlayers or googlemaps
NoteNote: 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';
NoteNote: This is the setting this wiki uses.

Map using the default mapping service

{{#display_map:
 Berlin, Germany
}}
Loading map...
<display_map>
Berlin, Germany
</display_map>
Loading map...


Map using the Google Maps service

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


Map using the OpenLayers service

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


Map using the LeafLet service

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