Embed Maps: Difference between revisions
From WikiMLT
m →Sofia |
|||
Line 44: | Line 44: | ||
* GeoJson in use: [[GeoJson:Berlin]] | * GeoJson in use: [[GeoJson:Berlin]] | ||
<noinclude><div id='devStage'> | <noinclude><div id='devStage'> |
Revision as of 21:24, 27 September 2022
Exension:Maps
- MediaWiki Extension: Extension:Maps
- ProfessionalWiki at GitHub: Maps
- Home page: Maps for MediaWiki
Installation
If you are using MediaWiki 1.35 or later and PHP 7.4 or later, run the following two commands.
IP="/var/www/wiki.example.com"
OWNER="www-data"
cd "$IP"
sudo -u "$OENER" COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~9.0
sudo -u "$OENER" composer update mediawiki/maps --no-dev -o
sudo nano "${IP}/LocalSettings.php"
/**
* Extension:Maps, https://maps.extension.wiki/wiki/Installation
*/
wfLoadExtension( 'Maps' );
For more details and ow to use Google maps instead of Leaflet maps read the installation manual.
Usage samples
For more details read the the documentation provided at the Maps for MediaWiki's homepage.
Sofia
{{#display_map: Mladost 4, Sofia, Bulgaria | geojson= }}
{{#display_map:center=Sofia, Bulgaria| geojson=Sofia}}
- GeoJson in use: GeoJson:Sofia
Berlin
{{#display_map: center=Berlin | geojson=Berlin}}
- GeoJson in use: GeoJson:Berlin