<p dir="auto">Check the added <code class="notranslate">canEmbed</code> layer option instead of <code class="notranslate">map.getMapBaseLayerId() !== "tracestracktopo"</code> when deciding whether <em>Share > HTML</em> should be available.</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/5388'>https://github.com/openstreetmap/openstreetmap-website/pull/5388</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5388/commits/0aeb1674f787e56a88019f96fbce93a4b252785e" class="commit-link">0aeb167</a>  Add map.getMapBaseLayer()</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5388/commits/b3429084c302a8910250568d2a52d0b67e7a2ba1" class="commit-link">b342908</a>  Rename 'keyid' layer option to 'keyId'</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5388/commits/00c6c745f4fb54b354f1b2c2f50d2231e7ad41ac" class="commit-link">00c6c74</a>  Add 'canEmbed' layer option</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5388/files">4 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5388/files#diff-cdc070ced1c4000efd1e28357fd26b2fd617d7fccfeae0324222231db75dd6ee">app/assets/javascripts/index.js</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5388/files#diff-f060eef487077b042f45b3a12e7a2cbd54a446f8c744cdb98405a1295430e8b9">app/assets/javascripts/leaflet.map.js</a>
    (14)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5388/files#diff-e15f8139afbbcbe98b89298674e7980a4a4500dbc54a431e1325a11adfe83f83">app/assets/javascripts/leaflet.share.js</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5388/files#diff-d892782f9b64fbeb09be7a61ed829d071c868b6b125f6a74df1de4bb033524a2">config/layers.yml</a>
    (5)
  </li>
</ul>

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