From ea548859d71f08432713146ecd6f89991e96c5a4 Mon Sep 17 00:00:00 2001 From: Hampus Hallkvist Date: Thu, 14 Nov 2024 11:47:47 +0100 Subject: [PATCH] fix: Disable dragRotate Drag rotate caused icons and booths to jump around in weird ways --- src/app/student/map/_components/MapComponent.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/student/map/_components/MapComponent.tsx b/src/app/student/map/_components/MapComponent.tsx index ac722bd..07c3234 100644 --- a/src/app/student/map/_components/MapComponent.tsx +++ b/src/app/student/map/_components/MapComponent.tsx @@ -178,6 +178,9 @@ export function MapComponent({ [18.063, 59.345], [18.079, 59.35] ]} + pitch={40} + touchZoomRotate={false} + dragRotate={false} mapStyle="https://api.maptiler.com/maps/376fa556-c405-4a91-8e9e-15be82eb3a58/style.json?key=mgMcr2yF2fWUHzf27ygv">