Maps examples/Choosing a mapping service

From semantic-mediawiki.org
< Category:Maps examples(Redirected from Maps examples/Choosing a mapping service)
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 googlemaps3
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[edit]

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 = 'googlemaps3';

Map using the default service[edit]

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

Map using the LeafLet service[edit]

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


Map using the OpenLayers service[edit]

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

Map using the Google Maps service[edit]

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


Starting June 11, 2018 the free usage of the Google Maps APIs is limited to 28,000 calls a month for dynamic maps. As soon as this monthly limit is reached no more maps will be served that month for this wiki by Google.