[openstreetmap/openstreetmap-website] Migrate the edit location page from leaflet to Maplibre (PR #6675)

Marwin Hochfelsner notifications at github.com
Mon Jan 5 11:13:11 UTC 2026


@hlfan commented on this pull request.



>  
-    return centerPt.distanceTo(inputPt) < 10;
+    return Math.sqrt(Math.pow(centerPt.x - inputPt.x, 2) + Math.pow(centerPt.y - inputPt.y, 2)) < 10;

As of https://github.com/mapbox/point-geometry:
```suggestion
    centerPt.dist(inputPt) < 10;
```

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

Message ID: <openstreetmap/openstreetmap-website/pull/6675/review/3626442330 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260105/dfdeb723/attachment.htm>


More information about the rails-dev mailing list