通过方法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));
通过方法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));