Replace simple image MediaWiki extension with Kartographer on wiki #5429
Reporter: Minh Nguyen
The wiki currently uses the [https://wiki.openstreetmap.org/wiki/Simple_image_MediaWiki_Extension Simple Image MediaWiki extension] to embed slippy maps. This extension works, but it also lacks many features that [https://wiki.openstreetmap.org/wiki/MediaWiki_extension other MediaWiki map extensions] provide. For example, wiki pages for individual cities could highlight featured areas or areas that need work using markers on the map. It would be great for wiki users if another map extension would be installed for slippy maps. The existing extension could remain for static maps.
The Wikimedia-developed [https://www.mediawiki.org/wiki/Help:Extension:Kartographer Kartographer] extension looks promising, given its good integration with !MediaWiki. Although it uses the Wikimedia Maps tile server by default, it looks like theres [https://www.mediawiki.org/wiki/Help:Extension:Kartographer/Developer_guide#Wikivoyage_customization a built-in way] to add the standard osm.org tiles. (The English Wikivoyage [https://en.wikivoyage.org/wiki/MediaWiki:Kartographer.js uses this mechanism] to add the Mapnik and !OpenCycleMap layers.)
Similar to the [http://staticmap.openstreetmap.de/ staticMapLite] service that Simple Image currently uses to generate static maps, Kartographers sister project Kartotherian can also [https://github.com/kartotherian/kartotherian/blob/master/README.md#static-map-images generate static maps], but that wouldnt be necessary for using Kartographer.
(The [https://www.mediawiki.org/wiki/Extension:Maps Maps] extension could also work, but its a lot more complex than Kartographer. As with the Kartographer extension, it needs some configuration, because it uses Google Maps by default.)
The text was updated successfully, but these errors were encountered:
Ok, I managed to have a thorough look at Kartographer. The problem I see, is the standard use of Wikimedia Maps which seems to be rather hard to change (you can change
(The Maps extension could also work, but its a lot more complex than Kartographer. As with the Kartographer extension, it needs some configuration, because it uses Google Maps by default.)
Personally, I would say that it is the other way around. We did consider this option (see openstreetmap/operations#249). However, our chef configuration did not harmonise with the composer (this might be a problem with Kartographer as well ([https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Kartographer/+/refs/heads/master/composer.json Composer requirements at Gerrit])).
With that said, I conclude by saying that this unfortunately does not work. Maybe, in some years, this will be possible, but for now I will close this. Thank you again for these information, it was still helpful to tackle this. I will continue trying to add "!MultiMaps" extension [https://github.com/openstreetmap/operations/issues/252 GitHub issue].