Difference between revisions of "Configuration"

From Maps for MediaWiki
m
m
 
Line 1: Line 1:
The default configuration of the Maps extension are fine for most wikis. There is no required configuration that needs to be done after installation.
Maps works out of the box without any configuration work being required.


You can configure Maps via the <code>LocalSettings.php</code> file in your wikis root directory. If you are not familiar with this file, please have a look at [https://www.mediawiki.org/wiki/Manual:LocalSettings.php MediaWikis "LocalSettings.php" manual].
You can configure Maps via the <code>LocalSettings.php</code> file in your wikis root directory. If you are not familiar with this file, please have a look at [https://www.mediawiki.org/wiki/Manual:LocalSettings.php MediaWikis "LocalSettings.php" manual].

Latest revision as of 12:47, 7 May 2020

Maps works out of the box without any configuration work being required.

You can configure Maps via the LocalSettings.php file in your wikis root directory. If you are not familiar with this file, please have a look at MediaWikis "LocalSettings.php" manual.

Configuration Example[edit | edit source]

wfLoadExtension( 'Maps' );
$egMapsDefaultService = 'leaflet';
$egMapsMapWidth = 500;

Supported Configuration[edit | edit source]

You can find a list of all configuration settings supported by the latest version of Maps in the "DefaultSettings.php" file.

If you are using an older version of Maps, you can view the configuration settings supported in that version by looking at the "DefaultSettings.php" file of your wiki. You can find it in at extensions/Maps/DefaultSettings.php. If this file does not exist, look for Maps_Settings.php instead.