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; -
-initWithWidth:height:latitude:longitude:zoom:bearing:pitch:fieldOfView:projectionMatrix:elevationData:renderToTilesIDs:Deprecated
This constructor is internal and to be used from within Mapbox SDK only.
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 renderToTilesIDs:(nullable NSArray<MBMCanonicalTileID *> *)renderToTilesIDs __attribute__((deprecated("This constructor is internal and to be used from within Mapbox SDK only."))); -
-initWithWidth:height:latitude:longitude:zoom:bearing:pitch:fieldOfView:projectionMatrix:elevationData:Deprecated
This constructor is deprecated and will be removed.
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 __attribute__((deprecated("This constructor is deprecated and will be removed."))); -
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; -
Note! This property is an experimental feature. It can be changed or removed in future versions.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSArray<MBMCanonicalTileID *> *renderToTilesIDs;Swift
var renderToTilesIDs: [MBMCanonicalTileID]? { get }
MBMCustomLayerRenderParameters Class Reference