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:
parent
74c8ed661c
commit
022837de87
2 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue