<p dir="auto">This PR addresses "When downloading image by 'Share', allow other map styles with static image APIs" issue mentioned in the <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="327536827" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1886" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/1886/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/1886">#1886</a></p>
<p dir="auto">Added API for downloading Transport and Cycle Map images, as they are supported by the <a href="https://www.thunderforest.com/docs/static-maps-api/" rel="nofollow">ThunderForest</a>. Also changed unsupported map text to show that not only Standard, but Transport and Cycle Map layers also have downloading capability. <span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #1886.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="327536827" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1886" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/1886/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/1886">#1886</a></p>
<p dir="auto">Transport layer:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/55288419/6ebd6d04-026e-4ef1-81cf-cbc6a3dcc6ab">Screenshot.2024-07-10.140949.png (view on web)</a></p>
<p dir="auto">Cycle Map layer:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/55288419/022bb17a-35f8-4619-af1c-be6f3697066d">Screenshot.2024-07-10.141009.png (view on web)</a></p>
<p dir="auto">Unsupported Humanitarian layer:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/55288419/98c9ae8a-f93d-4a3f-b075-a05bf8be6c9b">Screenshot.2024-07-10.141024.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/4973'>https://github.com/openstreetmap/openstreetmap-website/pull/4973</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4973/commits/9bafc63f89f042379a5222a55a15e8442b300d8d" class="commit-link">9bafc63</a>  When downloading image, allow other map styles</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4973/files">4 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4973/files#diff-e15f8139afbbcbe98b89298674e7980a4a4500dbc54a431e1325a11adfe83f83">app/assets/javascripts/leaflet.share.js</a>
    (45)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4973/files#diff-54679e47bd91d0e1b44dc9fd7224f5dff4645487fe07e15aa4a9671039a818cb">app/controllers/export_controller.rb</a>
    (14)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4973/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4973/files#diff-c5214c6ac7d239663aecd59e270a7be69caff34bb94d6dd1521e25c08eaa0a39">test/controllers/export_controller_test.rb</a>
    (14)
  </li>
</ul>

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