<p dir="auto">Follows <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2728356266" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5388" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5388/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5388">#5388</a>. Removes hardcoded layer id checks in <em>Share > Image</em>, except for one special mapnik check.</p>
<p dir="auto">If a layer that can't be downloaded is selected, the message shows a list of available layers:</p>
<p dir="auto">Before:<br>
<a href="https://github.com/user-attachments/assets/ce67b154-f8e2-4d85-a62a-b0ff72a9e2b9">image.png (view on web)</a></p>
<p dir="auto">After:<br>
<a href="https://github.com/user-attachments/assets/551fdfaf-9c3e-4324-ab5c-b386f7c7a3cf">image.png (view on web)</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/5416'>https://github.com/openstreetmap/openstreetmap-website/pull/5416</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5416/commits/0ea698bb3c607dd58df95484dc5a5235ad833a5b" class="commit-link">0ea698b</a>  Add 'canDownloadImage' layer option</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5416/commits/d74decfb409e5be88d2f23378dca03d990843963" class="commit-link">d74decf</a>  Change image download warning message to a list</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5416/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5416/files#diff-e15f8139afbbcbe98b89298674e7980a4a4500dbc54a431e1325a11adfe83f83">app/assets/javascripts/leaflet.share.js</a>
    (33)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5416/files#diff-d892782f9b64fbeb09be7a61ed829d071c868b6b125f6a74df1de4bb033524a2">config/layers.yml</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5416/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (2)
  </li>
</ul>

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