[openstreetmap/openstreetmap-website] Added error handling for object display on map (PR #6353)
mmd
notifications at github.com
Mon Aug 25 20:56:47 UTC 2025
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/6353 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250825/2cff09bb/attachment.htm>
More information about the rails-dev
mailing list