We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58567d3 commit f5f79edCopy full SHA for f5f79ed
dev-client/src/model/elevation/elevationFunctions.ts
@@ -17,8 +17,9 @@
17
18
import {Coords} from 'terraso-client-shared/types';
19
20
+import {COORDINATE_PRECISION} from 'terraso-mobile-client/constants';
21
import {ElevationKey} from 'terraso-mobile-client/model/elevation/elevationTypes';
22
23
export const elevationKey = (coords: Coords): ElevationKey => {
- return `(${coords.longitude.toFixed(5)}, ${coords.latitude.toFixed(5)})` as ElevationKey;
24
+ return `(${coords.longitude.toFixed(COORDINATE_PRECISION)}, ${coords.latitude.toFixed(COORDINATE_PRECISION)})` as ElevationKey;
25
};
0 commit comments