File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -331,8 +331,9 @@ open class RNMBXCamera : RNMBXMapAndMapViewComponentBase {
331331
332332 func _updateMaxBounds( ) {
333333 withMapView { map in
334+ let current = map. mapboxMap. cameraBounds
334335 var options = CameraBoundsOptions ( )
335-
336+
336337 if let maxBounds = self . maxBoundsFeature {
337338 logged ( " RNMBXCamera._updateMaxBounds._toCoordinateBounds " ) {
338339 options. bounds = try self . _toCoordinateBounds ( maxBounds)
@@ -342,7 +343,9 @@ open class RNMBXCamera : RNMBXMapAndMapViewComponentBase {
342343 }
343344 options. minZoom = self . minZoomLevel? . CGFloat
344345 options. maxZoom = self . maxZoomLevel? . CGFloat
345-
346+ options. minPitch = current. minPitch
347+ options. maxPitch = current. maxPitch
348+
346349 logged ( " RNMBXCamera._updateMaxBounds " ) {
347350 try map. mapboxMap. setCameraBounds ( with: options)
348351 }
You can’t perform that action at this time.
0 commit comments