diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2018-09-25 13:49:00 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2018-10-01 18:12:03 -0700 |
commit | 85a474e2757269313799dd11208da8a1540ab81e (patch) | |
tree | c373762f1188230dddc26ccd1833bd038884181f /platform/darwin/src/MGLMapCamera.h | |
parent | a030f1474fa9eb556552ec48eba9cb5e771d1580 (diff) | |
download | qtlocation-mapboxgl-85a474e2757269313799dd11208da8a1540ab81e.tar.gz |
[ios, macos] Added MGLMapCamera.viewingDistance property
Co-authored-by: Dave Prukop <dave.prukop@mapbox.com>
Diffstat (limited to 'platform/darwin/src/MGLMapCamera.h')
-rw-r--r-- | platform/darwin/src/MGLMapCamera.h | 20 |
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; |