@tomhughes commented on this pull request.
I wonder if this is something that should be more general? That
`OSM.loadSidebarContent` should be listening for the transition it starts to
finish and then poking the map and firing an event that the routing code can
listen to?
Oddly I can't reproduce the behaviour that we see with routing with other
things like object browse URLs than also open the sidebar and display overlays
on the map but I don't know why!
> + map.eachLayer((layer) => {
+ if (layer._glMap) {
+ layer._glMap.resize();
+ }
+ });
+ map.invalidateSize({ animate: false });
So the maplibre-gl plugin for leaflet doesn't respond correctly to size
invalidation I assume, hence the need to manually poke those layers? Has that
been reported to maplibre-gl-leaflet upstream?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6731#pullrequestreview-3693800302
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/6731/review/[email protected]>_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev