Skip to content

Commit

Permalink
fix(map): pass options, disable rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Feb 27, 2024
1 parent 0ff49d1 commit 4c43142
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/component/KnownObjects/Location.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const Card = (props: { locations: Geolocation_14201[] }) => {
{ lat, lng },
{ zoom: 8, attributionControl: false },
)
map.dragRotate.disable()
map.scrollZoom.disable()
map.dragPan.disable()

Expand Down
3 changes: 3 additions & 0 deletions src/map/createMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export const createMap = (
parameters.mapRegion,
),
zoom: options?.zoom ?? 4,
...options,
})
map.dragRotate.disable()
map.touchZoomRotate.disable()

return map
}

0 comments on commit 4c43142

Please sign in to comment.