diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-04-06 14:36:10 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-04-06 14:36:10 -0700 |
commit | 760c0f0f19aa00bdec063556d76ba5cceb150e93 (patch) | |
tree | 9929682214c21224049e0a5270adddd7cc7e1069 /include | |
parent | a525038d142383064ce25973a4089f4b4c776bdc (diff) | |
parent | af09fd599a15881eda20232fe4225d3a2d67538b (diff) | |
download | qtlocation-mapboxgl-760c0f0f19aa00bdec063556d76ba5cceb150e93.tar.gz |
Merge pull request #1214 from mapbox/1ec5-classesios-v0.2.8ios-beta-preview-sirius-0.0.9
Expose style class API publicly
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/ios/MGLMapView.h | 12 |
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 */ |