operations icon indicating copy to clipboard operation
operations copied to clipboard

Replace MultiMaps extension

Open Tigerfell opened this issue 1 year ago • 6 comments

Once again we have to find a new extension to display maps in the OSM wiki because MultiMaps extension throws errors when used with MediaWiki >= 1.38. The extension is not maintained anymore.

I would suggest to use the Kartographer extension because it is maintained by the Wikimedia Foundation. This suggestion has several shortcomings however:

  • Wikimedia maps is attributed even if we show our own maps.
  • API keys are readable from a wiki page (example: wikivoyage.org)
  • The extension makes useless HTTPS requests to <tileserver>/img/,13,37.8013,-122.3988,350x350.png?lang=en&domain=localhost&title=Sandbox&groups=_2251fa240a210d2861cc9f44c48d7e3ba116ff2f (some leftover code by WMF, OSM's tile servers are configured differently).
  • It expects to find the images of pins at tile.openstreetmap.org, so one can not use them.
  • It is impossible to show another tile layer like Thunderforest per default. One always has to access the map and then switch the layer individually.

All of those issues relate to the fact that WMF first developed this extension for themselves only. They did not take into account other setups or common practices employing Leaflet. I got in touch with their German chapter and they said they will not address these points in 2022 but maybe later. MediaWiki 1.37 has its end of live in November 2022 however.

Tigerfell avatar Sep 24 '22 09:09 Tigerfell

There’s also a Maps extension. It’s actively maintained and based on Leaflet like MultiMaps, and it seems to address some of the caveats above. At a glance, the main downside would probably be that it’s more complex than MultiMaps.

1ec5 avatar Sep 24 '22 15:09 1ec5

What's the decision on what we will replace it with so that we can get this moving? Using the Maps extension seems like the clear solution to me.

lectrician1 avatar Oct 23 '22 22:10 lectrician1

@lectrician1 as far as I can tell, no one is planning to work on it right now. Solving this would help with the wiki upgrade (#760). Do you want to take the lead on migrating to the Maps extension?

grischard avatar Oct 24 '22 16:10 grischard

I can see advantages to both Kartographer and Maps extensions. I do like something that Wikimedia supports, but the attribution would need to be fixed.

Firefishy avatar Oct 24 '22 16:10 Firefishy

@grischard

Do you want to take the lead on migrating to the Maps extension?

Of course! But I don't know how!

I don't know how the current maps work so I can look into it. Do I need to research configuring the extensions? Will I end up editing chef files?

lectrician1 avatar Oct 25 '22 23:10 lectrician1