Disable map tilt and rotate interactions (#1373)

This commit is contained in:
Alfonso Grillo
2023-07-20 17:29:38 +02:00
committed by GitHub
parent af97ca17f3
commit d795fee13f

View File

@@ -96,6 +96,8 @@ struct MapLibreMapView: UIViewRepresentable {
mapView.attributionButtonPosition = .topLeft
mapView.attributionButtonMargins = .init(x: mapView.logoView.frame.maxX + 8, y: mapView.logoView.center.y / 2)
mapView.tintColor = .black
mapView.allowsRotating = false
mapView.allowsTilting = false
return mapView
}