[openstreetmap/openstreetmap-website] Reuse bounds size functions (PR #6076)

Anton Khorev notifications at github.com
Fri Jun 6 20:15:38 UTC 2025


@AntonKhorev commented on this pull request.



> @@ -252,7 +247,7 @@ OSM.Query = function (map) {
    */
   function queryOverpass(lat, lng) {
     const latlng = L.latLng(lat, lng).wrap(),
-          bounds = map.getBounds().wrap(),
+          bounds = map.wrapLatLngBounds(map.getBounds()),

What does this wrap do, given that later each bbox corner point goes through `OSM.cropLocation` which calls `wrap` again?

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

Message ID: <openstreetmap/openstreetmap-website/pull/6076/review/2906060837 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250606/b1ba1861/attachment.htm>


More information about the rails-dev mailing list