From 804dde452a276833d124a01d10b7107527565066 Mon Sep 17 00:00:00 2001 From: NSUWAL123 Date: Mon, 18 Nov 2024 17:27:43 +0545 Subject: [PATCH] fix(main): tilt map on geolocation trigger --- src/mapper/src/lib/components/map/main.svelte | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mapper/src/lib/components/map/main.svelte b/src/mapper/src/lib/components/map/main.svelte index 2372a4db9b..ee1430c484 100644 --- a/src/mapper/src/lib/components/map/main.svelte +++ b/src/mapper/src/lib/components/map/main.svelte @@ -136,7 +136,15 @@ - (toggleGeolocationStatus = !toggleGeolocationStatus)} + { + toggleGeolocationStatus = !toggleGeolocationStatus; + if (toggleGeolocationStatus) { + map?.setPitch(45); + } else { + map?.setPitch(0); + } + }} >