MBMCameraBounds


@interface MBMCameraBounds : NSObject

Holds information about camera bounds.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)new NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithBounds:(nonnull MBMCoordinateBounds *)bounds
                                   maxZoom:(double)maxZoom
                                   minZoom:(double)minZoom
                                  maxPitch:(double)maxPitch
                                  minPitch:(double)minPitch;

    Swift

    init(bounds: MBMCoordinateBounds, maxZoom: Double, minZoom: Double, maxPitch: Double, minPitch: Double)
  • The latitude and longitude bounds to which the camera center are constrained.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) MBMCoordinateBounds *bounds;

    Swift

    var bounds: MBMCoordinateBounds { get }
  • The maximum zoom level, in Mapbox zoom levels 0-25.5. At low zoom levels, a small set of map tiles covers a large geographical area. At higher zoom levels, a larger number of tiles cover a smaller geographical area.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double maxZoom;

    Swift

    var maxZoom: Double { get }
  • The minimum zoom level, in Mapbox zoom levels 0-25.5.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double minZoom;

    Swift

    var minZoom: Double { get }
  • The maximum allowed pitch value in degrees.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double maxPitch;

    Swift

    var maxPitch: Double { get }
  • The minimum allowed pitch value in degrees.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double minPitch;

    Swift

    var minPitch: Double { get }