<p dir="auto">Applies different filters in dark mode: invert+rotate for layers without hillshading, dim for layers with.</p>
<p dir="auto">Doesn't implement any controls to changing the filter and, consequently, doesn't store selected values. For storing I'd start with deciding if <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2666068274" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5339" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5339/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5339">#5339</a> is ok first.</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/491ff70f-b783-417b-a69e-b752729773a6">image.png (view on web)</a></p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/b39627eb-668c-4ff2-9187-b2f8670e0009">image.png (view on web)</a></p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5347'>https://github.com/openstreetmap/openstreetmap-website/pull/5347</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5347/commits/3d32137506fb9899190f9a3f28e7c22731782278" class="commit-link">3d32137</a> Manage base layer switching in L.OSM.Map</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5347/commits/3b06fcfc184f9690ec54664ffe440c3cc665c326" class="commit-link">3b06fcf</a> Set map layer data attribute when switching layers</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5347/commits/9ae6e0b2a931dd8a1cde0249bd6fa4e99a76ac63" class="commit-link">9ae6e0b</a> Add map layer data attributes to layer menu buttons</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5347/commits/c47522c59d740bbb521e105fc6d1d6c8c728c836" class="commit-link">c47522c</a> Apply invert + hue-rotate filter to select layers</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5347/files">4 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5347/files#diff-87e33ea7d5e625dd851a78a3192719681de20caea8edd278a10f5342585c98e7">app/assets/javascripts/leaflet.layers.js</a>
(9)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5347/files#diff-f060eef487077b042f45b3a12e7a2cbd54a446f8c744cdb98405a1295430e8b9">app/assets/javascripts/leaflet.map.js</a>
(15)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5347/files#diff-e86a39e6d0b163f152db8843fc7d647a3f5d648de4a74f1732bef4474b6e5bc8">app/assets/stylesheets/common.scss</a>
(14)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5347/files#diff-4c385fec22247cf957e98e3bb9f2f29944b28396efc9101231dcdc8e154f817b">app/views/layouts/site.html.erb</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5347.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5347.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5347.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5347.diff</a></li>
</ul>
<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/5347">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOX2L2REW5GG2I5AF32BVC5TAVCNFSM6AAAAABSF6HW4CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGY3TONZWGE4TANI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPKLADALOSFTYNROU32BVC5TA5CNFSM6AAAAABSF6HW4CWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJ7G3HOE.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/5347</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/5347",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5347",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>