All Questions
1 question
2
votes
2
answers
6k
views
Find closest point using L.GeometryUtil.closest and open its popup
How do I use:
L.GeometryUtil.closest(myMap, coords, b)
to find the closest point in a geojson point layer in leaflet. I have tried several things. And the error I receive is:
Uncaught TypeError: ...