fixing map line, conversion from km to m was wrong, and the lat and long for the coordinates were backwards causing the distances to behave erratically

This commit is contained in:
csawatzky 2025-04-21 11:06:28 -06:00
parent 74c8ed661c
commit 022837de87
2 changed files with 5 additions and 5 deletions

View file

@ -499,7 +499,7 @@ export default function MapBase(props: Props) {
origin: pond.DataOrigin.DATA_ORIGIN_ADAPTIVE,
totalDist:
getDistanceUnit() === pond.DistanceUnit.DISTANCE_UNIT_METERS
? (data.totalDistanceKm / 1000).toFixed(2)
? (data.totalDistanceKm * 1000).toFixed(2)
: (data.totalDistanceKm * 3280.8398950131).toFixed(2)
};
feats.push(newFeature);