[openstreetmap/openstreetmap-website] Support unwrapped bbox values in changeset history queries (PR #5473)

Tom Hughes notifications at github.com
Mon Apr 7 19:24:58 UTC 2025


@tomhughes requested changes on this pull request.



>      end
   end
 
+  def wrap_lon(lon)
+    ((lon + 180) % 360) - 180

I don't think this works? If we consider a range from -270 to 270 and apply this to both then we wind up with 90 to -90 which is clearly nonsense?

Even considering a simple globe spanning -180 to 180 wraps both to -180 leaving us with an empty box...

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

Message ID: <openstreetmap/openstreetmap-website/pull/5473/review/2747894198 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250407/d103c67f/attachment.htm>


More information about the rails-dev mailing list