MBMCustomLayerRenderParameters


@interface MBMCustomLayerRenderParameters : NSObject

Parameters that define the current camera position for a CustomLayerHost::render() function.

  • 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)initWithWidth:(double)width
                                   height:(double)height
                                 latitude:(double)latitude
                                longitude:(double)longitude
                                     zoom:(double)zoom
                                  bearing:(double)bearing
                                    pitch:(double)pitch
                              fieldOfView:(double)fieldOfView
                         projectionMatrix:(nonnull NSArray<NSNumber *> *)projectionMatrix
                            elevationData:(nullable id<MBMElevationData>)elevationData;
  • The width.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double width;

    Swift

    var width: Double { get }
  • The height.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double height;

    Swift

    var height: Double { get }
  • The latitude of camera position.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double latitude;

    Swift

    var latitude: Double { get }
  • The longitude of camera position.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double longitude;

    Swift

    var longitude: Double { get }
  • The zoom of the camera.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double zoom;

    Swift

    var zoom: Double { get }
  • The bearing (orientation) of the camera. In degrees clockwise from north, it describes the direction in which the camera points.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double bearing;

    Swift

    var bearing: Double { get }
  • The pitch of the camera, the angle of pitch applied to the camera around the x-axis.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double pitch;

    Swift

    var pitch: Double { get }
  • The field of view of the camera in degrees

    Declaration

    Objective-C

    @property (nonatomic, readonly) double fieldOfView;

    Swift

    var fieldOfView: Double { get }
  • The projection matrix used for rendering. It projects spherical mercator coordinates to gl coordinates.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSArray<NSNumber *> *projectionMatrix;

    Swift

    var projectionMatrix: [NSNumber] { get }
  • If terrain is enabled, provides value to elevation data from render thread. Empty if terrain is not enabled.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) id<MBMElevationData> elevationData;