summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/src/MGLMapView.h')
-rw-r--r--platform/ios/src/MGLMapView.h31
1 files changed, 22 insertions, 9 deletions
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h
index 017ba525c4..1ad7e8f594 100644
--- a/platform/ios/src/MGLMapView.h
+++ b/platform/ios/src/MGLMapView.h
@@ -287,6 +287,19 @@ MGL_EXPORT
- (IBAction)reloadStyle:(nullable id)sender;
/**
+ A boolean value that indicates if whether the map view should automatically
+ adjust its content insets.
+
+ When this property is set to `YES` the map automatically updates its
+ `contentInset` property to account for any area not covered by navigation bars,
+ tab bars, toolbars, and other ancestors that obscure the map view.
+
+ The default value of this property is `YES`.
+
+ */
+@property (assign) BOOL automaticallyAdjustContentInset;
+
+/**
A Boolean value indicating whether the map may display scale information.
The scale bar may not be shown at all zoom levels. The scale bar becomes visible
@@ -1309,9 +1322,9 @@ MGL_EXPORT
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.
+ When the map view’s property `automaticallyAdjustContentInset` is set to `YES`,
+ the value of this property may be overridden at any time. To persist the value
+ set it to `NO`.
Changing the value of this property updates the map view immediately. If you
want to animate the change, use the `-setContentInset:animated:completionHandler:`
@@ -1329,9 +1342,9 @@ MGL_EXPORT
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.
+ When the map view’s property `automaticallyAdjustContentInset` is set to `YES`,
+ the value of this property may be overridden at any time. To persist the value
+ set it to `NO`.
To specify a completion handler to execute after the animation finishes, use
the `-setContentInset:animated:completionHandler:` method.
@@ -1354,9 +1367,9 @@ MGL_EXPORT
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.
+ When the map view’s property `automaticallyAdjustContentInset` is set to `YES`,
+ the value of this property may be overridden at any time. To persist the value
+ set it to `NO`.
@param contentInset The new values to inset the content by.
@param animated Specify `YES` if you want the map view to animate the change to