Leaflet中获取两个地理坐标点之间的距离
通过方法distanceTo()
distanceTo(<LatLng>otherLatLng) |
Number |
Returns the distance (in meters) to the given |
示例:
var latlng = L.latLng(40,112);
latlng.distanceTo(L.latLng(44,115));
转载自:https://blog.csdn.net/wml00000/article/details/84551289