Topic on Extension talk:Maps

Maps 4.0.1 displays Leaflet/OpenStreetMap maps instead of GoogleMaps

3
Summary by Kghbln

Starting with Maps 4.0 $egMapsDefaultService = 'googlemaps3'; has to be added to "LocalSettings.php" to use Google as service provider for maps.

Henryfunk (talkcontribs)

After I upgraded Mediawiki to version 1.28, Semantic MediaWiki to 2.4.2 and Maps to 4.01, Google Maps are no longer displayed; instead Leaflet/OpenStreetMaps maps are shown. The bug must be in the Maps extension. Putting the following line in my Localsettings file has no effect:

$GLOBALS['egMapsDefaultService'] = 'googlemaps3';

but if I instead change the line

$GLOBALS['egMapsDefaultService'] = 'leaflet';

in Maps_Settings.php to

$GLOBALS['egMapsDefaultService'] = 'googlemaps3';

then GoogleMaps are displayed as expected. The parameter value in Localsettings.php must be either ignored or overwritten by that in Maps_Settings.php.

As always: thank you for your good work!

Henrik Thiil Nielsen

Kghbln (talkcontribs)

Hi, try to add $egMapsDefaultService = 'googlemaps3'; to the "LocalSettings.php" file instead of this $GLOBALS stuff. Note that leaflet is indeed the default mapping service. Cheers

Henryfunk (talkcontribs)

Thanks!