diff options
author | Fredrik Karlsson <bjorn.fredrik.karlsson@gmail.com> | 2016-08-15 15:09:02 +0200 |
---|---|---|
committer | Fredrik Karlsson <bjorn.fredrik.karlsson@gmail.com> | 2016-08-18 14:26:04 +0200 |
commit | 5d307d098b29d2cd0a18db802e4199606d0689af (patch) | |
tree | 6c91bf9d0fd792d3689eb0e9e9e28d9c2038eb14 /platform/darwin/src/MGLStyle.h | |
parent | 106dd460fe4f09336470ee46e3e9759d331ec20c (diff) | |
download | qtlocation-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.h | 10 |
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. |