Opened 2 years ago

Closed 3 months ago

Last modified 3 months ago

#5431 closed enhancement (wontfix)

Replace simple image MediaWiki extension with Kartographer on wiki

Reported by: Minh Nguyễn Owned by: Tigerfell
Priority: major Milestone:
Component: wiki Version:
Keywords: Cc: Tigerfell

Description

The wiki currently uses the Simple Image MediaWiki extension to embed slippy maps. This extension works, but it also lacks many features that 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 Kartographer extension looks promising, given its good integration with MediaWiki. Although it uses the Wikimedia Maps tile server by default, it looks like there’s a built-in way to add the standard osm.org tiles. (The English Wikivoyage uses this mechanism to add the Mapnik and OpenCycleMap layers.)

Similar to the staticMapLite service that Simple Image currently uses to generate static maps, Kartographer’s sister project Kartotherian can also generate static maps, but that wouldn’t be necessary for using Kartographer.

(The Maps extension could also work, but it’s a lot more complex than Kartographer. As with the Kartographer extension, it needs some configuration, because it uses Google Maps by default.)

Change History (2)

comment:1 Changed 3 months ago by Tigerfell

Cc: Tigerfell added
Owner: changed from Grant Slater to Tigerfell
Priority: minormajor
Status: newassigned

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

comment:2 Changed 3 months ago by Tigerfell

Resolution: wontfix
Status: assignedclosed

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 it’s 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 https://github.com/openstreetmap/operations/issues/249). However, our chef configuration did not harmonise with the composer (this might be a problem with Kartographer as well (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 GitHub issue.

Last edited 3 months ago by Tigerfell (previous) (diff)
Note: See TracTickets for help on using tickets.