From 247b4ea535f2f37cb6e7ce708571f15785d32033 Mon Sep 17 00:00:00 2001 From: azarz Date: Fri, 6 Dec 2024 16:46:33 +0100 Subject: [PATCH] fix(navigation): small UX adjustments --- src/js/services/location.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/services/location.js b/src/js/services/location.js index 059f7491..9a34ea51 100644 --- a/src/js/services/location.js +++ b/src/js/services/location.js @@ -416,6 +416,7 @@ const locationOnOff = async () => { tracking_active = true; Globals.map.setPadding({top: 0, right: 0, bottom: 0, left: 0}); Globals.map.setCenter([currentPosition.coords.longitude, currentPosition.coords.latitude]); + Globals.map.setPitch(0); Globals.map.touchZoomRotate.disable(); Globals.map.getCanvasContainer().addEventListener("touchstart", locationOnTouchStartHandler); Globals.map.getCanvasContainer().addEventListener("touchmove", locationOnTouchMoveHandler);