mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 12:28:29 +00:00
Disable map tilt and rotate interactions (#1373)
This commit is contained in:
@@ -96,6 +96,8 @@ struct MapLibreMapView: UIViewRepresentable {
|
|||||||
mapView.attributionButtonPosition = .topLeft
|
mapView.attributionButtonPosition = .topLeft
|
||||||
mapView.attributionButtonMargins = .init(x: mapView.logoView.frame.maxX + 8, y: mapView.logoView.center.y / 2)
|
mapView.attributionButtonMargins = .init(x: mapView.logoView.frame.maxX + 8, y: mapView.logoView.center.y / 2)
|
||||||
mapView.tintColor = .black
|
mapView.tintColor = .black
|
||||||
|
mapView.allowsRotating = false
|
||||||
|
mapView.allowsTilting = false
|
||||||
return mapView
|
return mapView
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user