summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLMapCamera.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/src/MGLMapCamera.h')
-rw-r--r--platform/darwin/src/MGLMapCamera.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLMapCamera.h b/platform/darwin/src/MGLMapCamera.h
index f02beb731d..ec142939ed 100644
--- a/platform/darwin/src/MGLMapCamera.h
+++ b/platform/darwin/src/MGLMapCamera.h
@@ -25,9 +25,27 @@ MGL_EXPORT
*/
@property (nonatomic) CGFloat pitch;
-/** Meters above ground level. */
+/**
+ The altitude (measured in meters) above the map at which the camera is
+ situated.
+
+ The altitude is the distance from the viewpoint to the map, perpendicular to
+ the map plane. This property does not account for physical elevation.
+
+ This property’s value may be less than that of the `viewingDistance` property.
+ Setting this property automatically updates the `viewingDistance` property
+ based on the `pitch` property’s current value.
+ */
@property (nonatomic) CLLocationDistance altitude;
+/**
+ The straight-line distance from the viewpoint to the `centerCoordinate`.
+
+ Setting this property automatically updates the `altitude` property based on
+ the `pitch` property’s current value.
+ */
+@property (nonatomic) CLLocationDistance viewingDistance;
+
/** Returns a new camera with all properties set to 0. */
+ (instancetype)camera;