Skip to content
This repository has been archived by the owner. It is now read-only.

Replace simple image MediaWiki extension with Kartographer on wiki #5429

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Comments

@openstreetmap-trac
Copy link

@openstreetmap-trac openstreetmap-trac commented Jul 23, 2021

Reporter: Minh Nguyen
[Submitted to the original trac issue database at 6.24pm, Thursday, 20th October 2016]

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

@openstreetmap-trac
Copy link
Author

@openstreetmap-trac openstreetmap-trac commented Jul 23, 2021

Author: Tigerfell
[Added to the original trac issue at 8.57pm, Monday, 26th November 2018]

Great, thank you for all of the information. I will have a look at it.

@openstreetmap-trac
Copy link
Author

@openstreetmap-trac openstreetmap-trac commented Jul 23, 2021

Author: Tigerfell
[Added to the original trac issue at 11.32pm, Monday, 3rd December 2018]

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 $wgKartographerMapServer, but then you would also need to set up your own tile server or some extensive glue code to match the tile file names with the OSM syntax).
Yes, there is a build-in way to add OSM tiles, but you can not make it the default (Source: https://www.mediawiki.org/wiki/Extension_talk:Kartographer#Map_provider). Given that our wiki is the documentation of OpenStreetMap, I think this is too confusing to display a non-standard rendering by default.

(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].

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant