avoid 3d effect when no pitch but keep elevation queries working

This commit is contained in:
vcoppe
2024-05-09 00:14:43 +02:00
parent 703c331d44
commit 7eb3dc07a0
2 changed files with 18 additions and 2 deletions

View File

@@ -124,7 +124,7 @@ function getIntermediatePoints(points: Coordinates[]): Promise<TrackPoint[]> {
route.forEach((point) => {
point.setSurface("unknown");
point.ele = get(map)?.queryTerrainElevation(point.getCoordinates()) ?? undefined;
point.ele = get(map)?.queryTerrainElevation(point.getCoordinates(), { exaggerated: false }) ?? undefined;
});
return new Promise((resolve) => resolve(route));