Fix: disable rotation on mobile if the user enabled this

This commit is contained in:
Pieter Vander Vennet 2023-09-24 13:13:04 +02:00
parent 708e624779
commit 93a30fdba5

View file

@ -455,8 +455,10 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
map.rotateTo(0, { duration: 0 })
map.setPitch(0)
map.dragRotate.disable()
map.touchZoomRotate.disableRotation();
} else {
map.dragRotate.enable()
map.touchZoomRotate.enableRotation();
}
}