<p></p>
<blockquote>
<p dir="auto"><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> could this issue be re-titled "Migrate from Leaflet to maplibre-gl-js"?</p>
</blockquote>
<p dir="auto">There's an implementation question there that the maintainers would need to weigh in on.</p>
<p dir="auto">One implementation option is to completely replace Leaflet with Maplibre GL JS. This would</p>
<ul dir="auto">
<li>presumably speed up the data layer</li>
<li>minimize total data transferred if someone uses both a raster layer and a vector layer</li>
<li>minimize code complexity</li>
<li>require WebGL for most of the site to work</li>
<li>lock us in to only client-side rendering that Maplibre GL JS supports</li>
</ul>
<p dir="auto">The other option is to use Leaflet for raster layers, and only use Maplibre GL JS for vector layers. This would</p>
<ul dir="auto">
<li>require data layer implementations for Leaflet and Maplibre GL JS</li>
<li>minimize time to map load for raster layers because Leaflet is smaller</li>
<li>keep the site working for users without WebGL</li>
<li>keep the option open for different client-side rendering</li>
</ul>
<p dir="auto">My preference is for the first option, mainly for code complexity reasons. The latter would require our leaflet integration, a maplibre integration, and logic to switch between them. But making this decision isn't my call, it's a maintainer decision.</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/2686#issuecomment-1198564662">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOW53RC6M2MEB4GYWLVWLP77ANCNFSM4OQCSHZA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLKWLZ3X6IVBOONO7TVWLP77A5CNFSM4OQCSHZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI5YKKNQ.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/2686/1198564662</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/2686#issuecomment-1198564662",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2686#issuecomment-1198564662",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>