Skip to content

Commit

Permalink
fix: Disable dragRotate
Browse files Browse the repository at this point in the history
Drag rotate caused icons and booths to jump around in weird ways
  • Loading branch information
hampfh committed Nov 14, 2024
1 parent f71dea3 commit ea54885
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/student/map/_components/MapComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
<Layer {...backgroundLayerStyle}></Layer>

Expand Down

0 comments on commit ea54885

Please sign in to comment.