summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-01-16 01:15:45 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-01-18 16:54:58 -0800
commit6a0b7f8eb308c1c03a4013cff7e830c42924ce77 (patch)
tree2bd1ca64acd7e896e54506346e2f767df379e2a8 /include
parent47b69100f984bfc9e2e69cb7fa731c57d220d7dc (diff)
downloadqtlocation-mapboxgl-6a0b7f8eb308c1c03a4013cff7e830c42924ce77.tar.gz
[ios] Account for top/bottom bars
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/ios/MGLMapView.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/mbgl/ios/MGLMapView.h b/include/mbgl/ios/MGLMapView.h
index 569eb00ba4..d2bd849176 100644
--- a/include/mbgl/ios/MGLMapView.h
+++ b/include/mbgl/ios/MGLMapView.h
@@ -574,6 +574,22 @@ IB_DESIGNABLE
*/
- (void)flyToCamera:(MGLMapCamera *)camera withDuration:(NSTimeInterval)duration peakAltitude:(CLLocationDistance)peakAltitude completionHandler:(nullable void (^)(void))completion;
+/**
+ The distance from the edges of the map view’s frame to the edges of the map
+ view’s logical viewport.
+
+ When the value of this property is equal to `UIEdgeInsetsZero`, viewport
+ properties such as `centerCoordinate` assume a viewport that matches the map
+ view’s frame. Otherwise, those properties are inset, excluding part of the
+ frame from the viewport. For instance, if the only the top edge is inset, the
+ map center is effectively shifted downward.
+
+ When the map view’s superview is an instance of `UIViewController` whose
+ `automaticallyAdjustsScrollViewInsets` property is `YES`, the value of this
+ property may be overridden at any time.
+ */
+@property (nonatomic, assign) UIEdgeInsets contentInset;
+
#pragma mark Converting Geographic Coordinates
/**