<p dir="auto">This PR</p>
<ul dir="auto">
<li>Adds layer type switching based on a <strong>new theme parameter</strong> and prefers-color-scheme</li>
<li>Rewrites argument extraction and application of layer and bbox</li>
<li>Lints this file apparently for the first time</li>
</ul>
<p dir="auto">Doesn't touch the CSS though.</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/5519'>https://github.com/openstreetmap/openstreetmap-website/pull/5519</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5519/commits/037279aa9340d3db97fd890df11de38b9056724b" class="commit-link">037279a</a>  Allow map layers to specify an alternate tile set for dark mode</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5519/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5519/files#diff-8c15a01c0063fe88fd9f5197128e788856295e4755fbb4a3cbf7aa6be9f81ca7">app/assets/javascripts/embed.js.erb</a>
    (61)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5519.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5519.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5519.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5519.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/5519">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOZY2Z22SY4TRRR7MT2LME6ZAVCNFSM6AAAAABVOGWKMCVHI2DSMVQWIX3LMV43ASLTON2WKOZSG44TOMZWHA3DENY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNQXRPF6LJLH6XO6ZL2LME6ZA5CNFSM6AAAAABVOGWKMCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKNPDVGM.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/5519</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/5519",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5519",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>