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/c2577091...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to