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/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to