summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-04-03 00:13:34 -0700
committerMinh Nguyễn <mxn@1ec5.org>2015-04-03 12:41:38 -0700
commitd1fb43e37182e6364f6f0efa3c2644709893159a (patch)
tree8c8d1e11a84b2ef1ca92996bb8fa4c9c63704dfb /include
parent6eb79338f3298de8f0137125783f505f3cb9b407 (diff)
downloadqtlocation-mapboxgl-d1fb43e37182e6364f6f0efa3c2644709893159a.tar.gz
Inspectable toggles
Added inspectables for toggling zooming, panning, rotating, and showing the user location for parity with `MKMapView`.
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/ios/MGLMapView+IBAdditions.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/mbgl/ios/MGLMapView+IBAdditions.h b/include/mbgl/ios/MGLMapView+IBAdditions.h
index fdd1ea3503..df9a19a6b7 100644
--- a/include/mbgl/ios/MGLMapView+IBAdditions.h
+++ b/include/mbgl/ios/MGLMapView+IBAdditions.h
@@ -11,7 +11,7 @@
@property (nonatomic) IBInspectable NSString *accessToken;
@property (nonatomic) IBInspectable NSString *mapID;
-// Some convenience properties related to the initial viewport. These properties
+// Convenience properties related to the initial viewport. These properties
// are not meant to be used outside of Interface Builder. latitude and longitude
// are backed by properties of type CLLocationDegrees, but these declarations
// must use the type double because Interface Builder is unaware that
@@ -21,4 +21,13 @@
@property (nonatomic) IBInspectable double longitude;
@property (nonatomic) IBInspectable double zoomLevel;
+// Renamed properties. Interface Builder derives the display name of each
+// inspectable from the runtime name, but runtime names don’t always make sense
+// in UI.
+
+@property (nonatomic) IBInspectable BOOL allowsZooming;
+@property (nonatomic) IBInspectable BOOL allowsScrolling;
+@property (nonatomic) IBInspectable BOOL allowsRotating;
+@property (nonatomic) IBInspectable BOOL showsUserLocation;
+
@end