1ec5 created an issue (openstreetmap/openstreetmap-website#6638)

The homepage’s Layers pane shows a series of live “minimaps” of the current 
viewport, one per featured layer. These minimaps are currently implemented as 
Leaflet maps distinct from the main slippy map. We don’t do much with the 
minimaps other than to display a particular layer noninteractively and 
synchronize it with the viewport. We should be able to migrate these maps over 
to MapLibre GL JS (#6234) before the main slippy map. This will help us 
catch device compatibility issues before they affect the more critical main 
map. It’ll also be the first time that we render layers other than Standard 
without the 
[maplibre-gl-leaflet](https://github.com/maplibre/maplibre-gl-leaflet/) 
compatibility shim.

https://github.com/openstreetmap/openstreetmap-website/blob/56b153f62b77543a24708e4958d6097e189d6eeb/app/assets/javascripts/leaflet.layers.js#L19-L20

Ironically, this will result in embedding a MapLibre map inside a Leaflet 
control, since we implement the Layers pane as an `L.OSM.SidebarPane`. I’d 
expect it to be fine from a performance and code management standpoint. The 
Shortbread and MapTiler OMT minimaps are already being rendered by MapLibre 
behind the scenes.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6638
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to