MMKCameraPosition

@interface MMKCameraPosition : NSObject

The position of the camera.

Summary

Class methods

+ (nonnull MMKCameraPosition *)cameraPositionWithTarget:(nonnull MMKPoint *)target
                                                   zoom:( float)zoom
                                                azimuth:( float)azimuth
                                                   tilt:( float)tilt;

Properties

@property (nonatomic, readonly, nonnull) MMKPoint *target;
The point the camera is looking at

@property (nonatomic, readonly) float zoom;
Zoom level

@property (nonatomic, readonly) float azimuth;
Angle between north and the direction of interest on the map plane, in degrees in the range [0, 360)

@property (nonatomic, readonly) float tilt;
Camera tilt in degrees

Class methods

cameraPositionWithTarget:zoom:azimuth:tilt:

+ (nonnull MMKCameraPosition *)cameraPositionWithTarget:(nonnull MMKPoint *)target
                                                   zoom:( float)zoom
                                                azimuth:( float)azimuth
                                                   tilt:( float)tilt;


Properties

target

@property (nonatomic, readonly, nonnull) MMKPoint *target;

The point the camera is looking at.


zoom

@property (nonatomic, readonly) float zoom;

Zoom level. 0 corresponds to the whole world displayed in a single tile.


azimuth

@property (nonatomic, readonly) float azimuth;

Angle between north and the direction of interest on the map plane, in degrees in the range [0, 360).


tilt

@property (nonatomic, readonly) float tilt;

Camera tilt in degrees. 0 means vertical downward.