summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLStyle.h
diff options
context:
space:
mode:
authorFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2016-08-15 15:09:02 +0200
committerFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2016-08-18 14:26:04 +0200
commit5d307d098b29d2cd0a18db802e4199606d0689af (patch)
tree6c91bf9d0fd792d3689eb0e9e9e28d9c2038eb14 /platform/darwin/src/MGLStyle.h
parent106dd460fe4f09336470ee46e3e9759d331ec20c (diff)
downloadqtlocation-mapboxgl-5d307d098b29d2cd0a18db802e4199606d0689af.tar.gz
[ios, macos] Fixes #5975 Add source getter to MGLStyle
Diffstat (limited to 'platform/darwin/src/MGLStyle.h')
-rw-r--r--platform/darwin/src/MGLStyle.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLStyle.h b/platform/darwin/src/MGLStyle.h
index 368557fc81..b1ccfe14e6 100644
--- a/platform/darwin/src/MGLStyle.h
+++ b/platform/darwin/src/MGLStyle.h
@@ -174,8 +174,16 @@ static const NSInteger MGLStyleDefaultVersion = 9;
*/
- (nullable id <MGLStyleLayer>)layerWithIdentifier:(NSString *)identifier;
+
+/**
+ Returns a source if any source with the given identifier was found.
+
+ @return source An instance of an `MGLSource` subclass.
+ */
+- (MGLSource *)sourceWithIdentifier:(NSString *)identifier;
+
/**
- Adds a new layer at the top of the hierarchy.
+ Adds a new layer on top of existing layers.
@param styleLayer The layer object to add to the map view. This object
must conform to the `MGLStyleLayer` protocol.