Skip to content

Commit

Permalink
NM two decimal points
Browse files Browse the repository at this point in the history
  • Loading branch information
lukarenko committed Apr 28, 2024
1 parent 9410721 commit db94ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/timelapse/Timelapse3.vue
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
// Returns the distance (in meters)
distance += last.distanceTo(coord_rev)
// convert meters -> KM -> NM
distanceView.innerText = parseFloat(parseFloat(distance / 1000) * 0.5399568).toFixed(3) + ' NM'
distanceView.innerText = parseFloat(parseFloat(distance / 1000) * 0.5399568).toFixed(2) + ' NM'
datetimeView.innerText = dateFormatUTC(geojson.features[index].properties.time)
}
last = L.latLng(coord_rev)
Expand Down

0 comments on commit db94ca9

Please sign in to comment.