<p dir="auto">Links <em>key.yml</em> to <em>layers.yml</em> in the <code class="notranslate">MapLayers</code> module by putting a <code class="notranslate">hasKey</code> flag into the <code class="notranslate">LAYER_DEFINITIONS</code>.<br>
This removes the need for <code class="notranslate">LAYERS_WITH_MAP_KEY</code> as the key button can now directly check <code class="notranslate">layer.options.hasKey</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/5918'>https://github.com/openstreetmap/openstreetmap-website/pull/5918</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5918/commits/6ae05daa1b1d585b07ed833023be1c84f9eb5827" class="commit-link">6ae05da</a> Put map key presence 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/5918/files">3 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5918/files#diff-08a7ab143240d1f24d2cfc6f105ae9a1d8bc7fc5d1b95a280cb8a76180e93397">app/assets/javascripts/leaflet.key.js</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5918/files#diff-a9b88a8a3644f944b9bd54361da588c69fa6a210cf7327194c17895a8ad2b0d6">app/assets/javascripts/osm.js.erb</a>
(3)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5918/files#diff-e34d4641ba9894ccb3b643428fbd894a61bd2ec7c49ebde859e8af8e6ffa800b">lib/map_layers.rb</a>
(4)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5918.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5918.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5918.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5918.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/5918">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIBDF226FKSQW5OZIT2Y27U7AVCNFSM6AAAAAB24OM7B6VHI2DSMVQWIX3LMV43ASLTON2WKOZSHE4DMNRVGA3TCNY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLL22XMTC4ZFFLAVTMT2Y27U7A5CNFSM6AAAAAB24OM7B6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLEBFMLU.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/5918</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/5918",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5918",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>