turf.nearestPoint only returning the same point
问题 I am making a Leaflet map. I am loading some geoJSON data. I have an on click function for the map. When I click I simply want to alert the nearest point from the loaded geoJSON. The problem is that only one point is returned no matter where I click in the city ( the point shown in the image below. //Create the map var map = L.map('mapdiv').setView([-43.534384, 172.640528], 13); // Add the basemap L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© <a href=