[openstreetmap/openstreetmap-website] Clean up query related code (PR #6102)

Tom Hughes notifications at github.com
Sun Jun 15 11:24:43 UTC 2025


@tomhughes commented on this pull request.



> @@ -250,34 +242,31 @@ OSM.Query = function (map) {
    * In both cases we then ask to retrieve tags and the geometry
    * for each object.
    */
-  function queryOverpass(lat, lng) {
-    const latlng = L.latLng(lat, lng).wrap(),
-          bounds = map.getBounds().wrap(),

You've dropped the `wrap` here because it's "unnecessary" but why is it no longer necessary? Presumably you think overpass handles out of range bounds?

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

Message ID: <openstreetmap/openstreetmap-website/pull/6102/review/2929129647 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250615/a31d954a/attachment.htm>


More information about the rails-dev mailing list