[openstreetmap/openstreetmap-website] Support unwrapped bbox values in changeset history queries (PR #5473)
Anton Khorev
notifications at github.com
Wed Jan 8 08:44:29 UTC 2025
Do you want the longitude span check on the javascript side? Something like this before sending the bbox:
```
if (max_lon - min_lon >= 360) {
min_lon = -180;
max_lon = 180;
}
```
This will eliminate [one out of three cases here](https://github.com/openstreetmap/openstreetmap-website/pull/5473/files#diff-cf3fe9dc357f802fd9155582ffc8c6f71185065267991a2135323ad2d044b4f3R157-R163). But how would you modify `wrap` to produce a valid bbox in cases like `min_lon = 170; max_lon = 190`?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5473#issuecomment-2577091941
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5473/c2577091941 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250108/c02e7a72/attachment.htm>
More information about the rails-dev
mailing list