Skip to content

Commit ea54885

Browse files
committed
fix: Disable dragRotate
Drag rotate caused icons and booths to jump around in weird ways
1 parent f71dea3 commit ea54885

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/student/map/_components/MapComponent.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ export function MapComponent({
178178
[18.063, 59.345],
179179
[18.079, 59.35]
180180
]}
181+
pitch={40}
182+
touchZoomRotate={false}
183+
dragRotate={false}
181184
mapStyle="https://api.maptiler.com/maps/376fa556-c405-4a91-8e9e-15be82eb3a58/style.json?key=mgMcr2yF2fWUHzf27ygv">
182185
<Layer {...backgroundLayerStyle}></Layer>
183186

0 commit comments

Comments
 (0)