MBMCameraState


@interface MBMCameraState : NSObject

Describes the viewpoint of a camera.

  • 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)initWithCenter:(CLLocationCoordinate2D)center
                                   padding:(nonnull MBMEdgeInsets *)padding
                                      zoom:(double)zoom
                                   bearing:(double)bearing
                                     pitch:(double)pitch;

    Swift

    init(center: CLLocationCoordinate2D, padding: MBMEdgeInsets, zoom: Double, bearing: Double, pitch: Double)
  • Coordinate at the center of the camera.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CLLocationCoordinate2D center;

    Swift

    var center: CLLocationCoordinate2D { get }
  • Padding around the interior of the view that affects the frame of reference for center.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) MBMEdgeInsets *padding;

    Swift

    var padding: MBMEdgeInsets { get }
  • Zero-based zoom level. Constrained to the minimum and maximum zoom levels.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double zoom;

    Swift

    var zoom: Double { get }
  • Bearing, measured in degrees from true north. Wrapped to [0, 360).

    Declaration

    Objective-C

    @property (nonatomic, readonly) double bearing;

    Swift

    var bearing: Double { get }
  • Pitch toward the horizon measured in degrees.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double pitch;

    Swift

    var pitch: Double { get }