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) 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 = '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...

Map using the LeafLet service[edit]

{{#display_map:
 Berlin, Germany
 |service=leaflet
}}
Loading map...

Map using the Google Maps service[edit]

{{#display_map:
 Berlin, Germany
 |service=googlemaps
}}
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.