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

Marwin Hochfelsner notifications at github.com
Fri Jun 6 21:12:27 UTC 2025


@hlfan 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()),

Removed, previously didn't question 2d22ab10f759828e27876f138b419ff4c0913b87.

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

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


More information about the rails-dev mailing list