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.

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:

<img width="552" height="381" alt="error1" 
src="https://github.com/user-attachments/assets/4b8c460d-b954-4c9a-a61c-a643d02f3564"
 />



You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6353

-- Commit Summary --

  * Added error handling for object display on map

-- File Changes --

    M app/assets/javascripts/leaflet.map.js (36)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6353.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6353.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6353
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to