@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/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to