MBMCameraOptions


@interface MBMCameraOptions : NSObject

Various options for describing the viewpoint of a camera. All fields are optional.

Anchor and center points are mutually exclusive, with preference for the center point when both are set.

  • 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:(nullable CLLocation *)center
                                   padding:(nullable MBMEdgeInsets *)padding
                                    anchor:(nullable MBMScreenCoordinate *)anchor
                                      zoom:(nullable NSNumber *)zoom
                                   bearing:(nullable NSNumber *)bearing
                                     pitch:(nullable NSNumber *)pitch NS_REFINED_FOR_SWIFT;
  • Coordinate at the center of the camera.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) CLLocation *center;
  • Padding around the interior of the view that affects the frame of reference for center.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MBMEdgeInsets *padding;
  • Point of reference for zoom and angle, assuming an origin at the top-left corner of the view.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MBMScreenCoordinate *anchor;
  • Zero-based zoom level. Constrained to the minimum and maximum zoom levels.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *zoom;
  • Bearing, measured in degrees from true north. Wrapped to [0, 360).

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *bearing;
  • Pitch toward the horizon measured in degrees.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *pitch;