Leaflet中获取两个地理坐标点之间的距离

通过方法distanceTo()nndistanceTo(otherLatLng)n Numbern n Returns the distance (in meters) to the given LatLng calculated using the Spherical Law of Cosines.n n 示例:nnvar latlng = L.l…