summaryrefslogtreecommitdiff
path: root/include/mbgl/ios
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-04-06 12:26:26 -0700
committerMinh Nguyễn <mxn@1ec5.org>2015-04-06 12:26:26 -0700
commitaf09fd599a15881eda20232fe4225d3a2d67538b (patch)
tree42730f92cc8acb1060271fe6698bc5f0fcf9e97c /include/mbgl/ios
parent87d9507854590803e3e1beffb0dd13c0c07dfe25 (diff)
downloadqtlocation-mapboxgl-af09fd599a15881eda20232fe4225d3a2d67538b.tar.gz
Expose style class API publicly
Also added some convenience methods to match the underlying C++ API.
Diffstat (limited to 'include/mbgl/ios')
-rw-r--r--include/mbgl/ios/MGLMapView.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/mbgl/ios/MGLMapView.h b/include/mbgl/ios/MGLMapView.h
index 5db1f425d5..f2aef61830 100644
--- a/include/mbgl/ios/MGLMapView.h
+++ b/include/mbgl/ios/MGLMapView.h
@@ -181,6 +181,18 @@ IB_DESIGNABLE
* To display the default style, set this property to `nil`. */
@property (nonatomic) NSURL *styleURL;
+/** Currently active style classes, represented as an array of string identifiers. */
+@property (nonatomic) NSArray *styleClasses;
+
+/** Returns a Boolean value indicating whether the style class with the given identifier is currently active. */
+- (BOOL)hasStyleClass:(NSString *)styleClass;
+
+/** Activates the style class with the given identifier. */
+- (void)addStyleClass:(NSString *)styleClass;
+
+/** Deactivates the style class with the given identifier. */
+- (void)removeStyleClass:(NSString *)styleClass;
+
#pragma mark - Annotating the Map
/** @name Annotating the Map */