<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/10377391?s=20&v=4" /><strong>controversial</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/issues/6234#issuecomment-3110164819">(openstreetmap/openstreetmap-website#6234)</a></div>
<p dir="auto">My original idea <em>was</em> 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.</p>
<p dir="auto">However, looking at the code, that could easily turn out to be silly and/or infeasible.</p>
<p dir="auto">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 <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pnorman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pnorman">@pnorman</a>’s <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2686#issuecomment-1226131786" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/2686/hovercard">analysis</a> of whether a sufficient proportion of users’ browsers have webgl support.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/6234#issuecomment-3110164819">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPWCSG2633KAUJEYYT3J72BPAVCNFSM6AAAAACCGOXFYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCMJQGE3DIOBRHE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJAW5D5VETMZGW6E6D3J72BPA5CNFSM6AAAAACCGOXFYSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVZMFMVG.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/6234/3110164819</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>

<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/6234#issuecomment-3110164819",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/6234#issuecomment-3110164819",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>