<p></p>
<blockquote>
<p dir="auto">Looks like <a href="https://github.com/sgiehl/piwik-plugin-DeviceFeatureWebGL">https://github.com/sgiehl/piwik-plugin-DeviceFeatureWebGL</a> will track webgl support which will get us the data needed to make an informed decision.</p>
</blockquote>
<p dir="auto">This is the library that MapLibre uses to check whether the browser supports what is needed, including specific WebGL and JavaScript features: <a href="https://github.com/mapbox/mapbox-gl-supported">https://github.com/mapbox/mapbox-gl-supported</a></p>
<blockquote>
<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>
</blockquote>
<p dir="auto">Could a simple integration using maplibre-gl-leaflet work as an upgrade path to consider? Like this: Load the Leaflet map as usual by default. Only if/when the user selects a client-side rendered layer (a vector background layer or features), load maplibre-gl-leaflet and MapLibre code dynamically and add it as a layer to the Leaflet map. The downside is a little less performance caused by how maplibre-gl-leaflet works. As an upside, this shouldn't require big changes to the existing code or much new code. <a href="https://github.com/maplibre/maplibre-gl-leaflet">https://github.com/maplibre/maplibre-gl-leaflet</a></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-1199031462">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPRJ3WZF52GNSPCOTLVWOLDRANCNFSM4OQCSHZA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNNRAAASJ3TMXJCJFDVWOLDRA5CNFSM4OQCSHZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI534JJQ.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/1199031462</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-1199031462",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2686#issuecomment-1199031462",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>