<p dir="auto">Now that we're able to display large relations without hitting gateway timeout errors, users will try this out on fairly large objects. At some point they're likely to encounter rate limiting. Previously, any error messages were silently discarded, and an empty map is shown instead, which is a bit confusing.</p>
<p dir="auto">I'm reusing the good old error code from app/assets/javascripts/index/layers/data.js in this PR to display a proper error message instead:</p>
<a href="https://github.com/user-attachments/assets/4b8c460d-b954-4c9a-a61c-a643d02f3564">error1.png (view on web)</a>

<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/6353'>https://github.com/openstreetmap/openstreetmap-website/pull/6353</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6353/commits/aceaafe5024c5f0bd5915d25a049156380745fa1" class="commit-link">aceaafe</a>  Added error handling for object display on map</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6353/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6353/files#diff-f060eef487077b042f45b3a12e7a2cbd54a446f8c744cdb98405a1295430e8b9">app/assets/javascripts/leaflet.map.js</a>
    (36)
  </li>
</ul>

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