summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-08-24 11:43:54 -0700
committerGitHub <noreply@github.com>2016-08-24 11:43:54 -0700
commit2523f33ac440be1a817e50d2d8bdc4d9c5b0a9d9 (patch)
tree1e404d39d374ce03b318ce316ec6cce6d079ad65 /platform/ios/src/MGLMapView.h
parent7fb7bc0fbc519e1ac934eb1218c4a3032def9317 (diff)
downloadqtlocation-mapboxgl-2523f33ac440be1a817e50d2d8bdc4d9c5b0a9d9.tar.gz
[ios, macos] Expose name and default position of current style (#6127)
* [ios] Reset to style’s default position * [ios, macos] Added name property to MGLStyle
Diffstat (limited to 'platform/ios/src/MGLMapView.h')
-rw-r--r--platform/ios/src/MGLMapView.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h
index 40a9ad51f7..57b74daa04 100644
--- a/platform/ios/src/MGLMapView.h
+++ b/platform/ios/src/MGLMapView.h
@@ -540,6 +540,14 @@ IB_DESIGNABLE
- (IBAction)resetNorth;
/**
+ Resets the map to the current style’s default viewport.
+
+ If the style doesn’t specify a default viewport, the map resets to a minimum
+ zoom level, a center coordinate of (0, 0), and a northern heading.
+ */
+- (IBAction)resetPosition;
+
+/**
The coordinate bounds visible in the receiver’s viewport.
Changing the value of this property updates the receiver immediately. If you
@@ -1195,12 +1203,6 @@ IB_DESIGNABLE
- (void)emptyMemoryCache __attribute__((deprecated));
-/**
- Resets the map to the minimum zoom level, a center coordinate of (0, 0), and
- a northern heading.
- */
-- (void)resetPosition;
-
@end
NS_ASSUME_NONNULL_END