<p dir="auto">A version between <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">#5396</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2737897583" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5397" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5397/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5397">#5397</a> using the updated version of leaflet-osm without requiring it.<br>
Also removing some ifs that always evaluate true and removed the dependency on the <code class="notranslate">.key-ui</code>.</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/5426'>https://github.com/openstreetmap/openstreetmap-website/pull/5426</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5426/commits/aa922d8447a6facc0dfd389000aba8c6b029f6ec" class="commit-link">aa922d8</a> Add switching to the dark leaflet-osm map</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5426/commits/8c65b8fb85bdbabfd78d17a8ce0ac0b1340bde9d" class="commit-link">8c65b8f</a> Set layer styles in menu</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5426/commits/88029efca5865721ea7d011e4fe2064019acf231" class="commit-link">88029ef</a> Specify first leafletOsmDarkId</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5426/files">3 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5426/files#diff-87e33ea7d5e625dd851a78a3192719681de20caea8edd278a10f5342585c98e7">app/assets/javascripts/leaflet.layers.js</a>
(3)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5426/files#diff-f060eef487077b042f45b3a12e7a2cbd54a446f8c744cdb98405a1295430e8b9">app/assets/javascripts/leaflet.map.js</a>
(25)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5426/files#diff-d892782f9b64fbeb09be7a61ed829d071c868b6b125f6a74df1de4bb033524a2">config/layers.yml</a>
(1)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5426.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5426.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5426.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5426.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/5426">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLHZ3GQ4PQ6W6LH36L2GQHNBAVCNFSM6AAAAABT7CQ4MWVHI2DSMVQWIX3LMV43ASLTON2WKOZSG42TENRYGQ2TENI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMJZJBB7IGUBMV5X6D2GQHNBA5CNFSM6AAAAABT7CQ4MWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKIEVB5U.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</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",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5426",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>