From d795fee13f2b386aa19410a55bd04304a3e6ba19 Mon Sep 17 00:00:00 2001 From: Alfonso Grillo Date: Thu, 20 Jul 2023 17:29:38 +0200 Subject: [PATCH] Disable map tilt and rotate interactions (#1373) --- ElementX/Sources/Other/MapLibre/MapLibreMapView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ElementX/Sources/Other/MapLibre/MapLibreMapView.swift b/ElementX/Sources/Other/MapLibre/MapLibreMapView.swift index cc66ee623..1d1378b3e 100644 --- a/ElementX/Sources/Other/MapLibre/MapLibreMapView.swift +++ b/ElementX/Sources/Other/MapLibre/MapLibreMapView.swift @@ -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 }