Small improvements

This commit is contained in:
Pieter Vander Vennet 2021-07-29 00:29:29 +02:00
parent de721c6c37
commit 1a4417545a
5 changed files with 28 additions and 24 deletions

View file

@ -142,7 +142,7 @@ export default class LengthInput extends InputElement<string> {
if (leaflet) {
const first = leaflet.layerPointToLatLng(firstClickXY)
const last = leaflet.layerPointToLatLng([dx, dy])
const geoDist = Math.floor(GeoOperations.distanceBetween([first.lng, first.lat], [last.lng, last.lat]) * 100000) / 100
const geoDist = Math.floor(GeoOperations.distanceBetween([first.lng, first.lat], [last.lng, last.lat]) * 10000) / 10
self.value.setData("" + geoDist)
}