<h3 dir="auto">Description</h3>
<p dir="auto">This PR expands on and <span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes pull request #5352.">closes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2686751892" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5352" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5352/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5352">#5352</a>, building onto the <code class="notranslate">MapLayers</code> library and also reusing the keys for the embed layer selection (<code class="notranslate">leafletOsmId</code> instead of <code class="notranslate">layer</code>).</p>
<h3 dir="auto">How has this been tested?</h3>
<p dir="auto">Only the difference to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2686751892" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5352" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5352/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5352">#5352</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/5809'>https://github.com/openstreetmap/openstreetmap-website/pull/5809</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5809/commits/fc878e3c019f7e06ea5e7c811bde6ae2425c5bf1" class="commit-link">fc878e3</a>  Put api keys directly in js layer definitions</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5809/files">5 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5809/files#diff-8c15a01c0063fe88fd9f5197128e788856295e4755fbb4a3cbf7aa6be9f81ca7">app/assets/javascripts/embed.js.erb</a>
    (28)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5809/files#diff-f060eef487077b042f45b3a12e7a2cbd54a446f8c744cdb98405a1295430e8b9">app/assets/javascripts/leaflet.map.js</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5809/files#diff-a9b88a8a3644f944b9bd54361da588c69fa6a210cf7327194c17895a8ad2b0d6">app/assets/javascripts/osm.js.erb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5809/files#diff-d892782f9b64fbeb09be7a61ed829d071c868b6b125f6a74df1de4bb033524a2">config/layers.yml</a>
    (6)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5809/files#diff-e34d4641ba9894ccb3b643428fbd894a61bd2ec7c49ebde859e8af8e6ffa800b">lib/map_layers.rb</a>
    (19)
  </li>
</ul>

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