Re: [openstreetmap/openstreetmap-website] Migrate new vector layers from maplibre-gl-leaflet to “unwrapped” maplibre-gl-js (Issue #6234)

Luke Deen Taylor notifications at github.com
Wed Jul 23 21:03:19 UTC 2025


controversial left a comment (openstreetmap/openstreetmap-website#6234)

My original idea _was_ to “use two separate map display libraries on the same page” — we could switch out / instantiate the underlying map implementation when the user switches map layers, and we could adjust front-end code that interacts with the map instance so that it had implementations for both map renderers.

However, looking at the code, that could easily turn out to be silly and/or infeasible.

maplibre-gl-js is a much more “modern” javascript library than Leaflet is, and has the potential to be much more performant at rendering, and provide a richer feature set down the road. So, I do believe that moving to maplibre-gl-js for all layers would be an improvement; however, that would be contingent on @pnorman’s [analysis](https://github.com/openstreetmap/openstreetmap-website/issues/2686#issuecomment-1226131786) of whether a sufficient proportion of users’ browsers have webgl support.

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

Message ID: <openstreetmap/openstreetmap-website/issues/6234/3110164819 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250723/28782f5b/attachment.htm>


More information about the rails-dev mailing list