<p></p>
<p><b>@hlfan</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5426#discussion_r1899531743">app/assets/javascripts/leaflet.layers.js</a>:</p>
<pre style='color:#555'>> @@ -31,6 +31,9 @@ L.OSM.layers = function (options) {
var miniMap = L.map(mapContainer[0], { attributionControl: false, zoomControl: false, keyboard: false })
.addLayer(new layer.constructor(layer.options));
+ if (layer.options.schemeClass) miniMap.getPane("tilePane").classList.add(layer.options.schemeClass);
+ miniMap.getPane("tilePane").style.setProperty("--dark-mode-map-filter", layer.options.filter || "none");
</pre>
<p dir="auto">Since the opinions in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2661819843" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5328" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5328/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5328">#5328</a> varied wildly, I wanted to have an easy flag for other devs that an alternate tileset has been loaded, since some might like a different styling like I already mentioned in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2736705476" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5396" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5396/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5396#issue-2736705476">#5396 (comment)</a>.<br>
You are correct in that it doesn't do anything on the unmodified site.</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/pull/5426#discussion_r1899531743">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMV5P7TSM6QSQPOGI32IFAMPAVCNFSM6AAAAABT7CQ4MWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDKMRVGU3DKNBXGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLO25CBGDUAUSETC6U32IFAMPA5CNFSM6AAAAABT7CQ4MWWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTUWREJCA.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/pull/5426/review/2525565472</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/pull/5426#discussion_r1899531743",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5426#discussion_r1899531743",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>