summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLStyle.h
diff options
context:
space:
mode:
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.