diff options
Diffstat (limited to 'platform/darwin/src/MGLStyleLayer.h.ejs')
-rw-r--r-- | platform/darwin/src/MGLStyleLayer.h.ejs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLStyleLayer.h.ejs b/platform/darwin/src/MGLStyleLayer.h.ejs index 8acda024c4..64a7e06b5f 100644 --- a/platform/darwin/src/MGLStyleLayer.h.ejs +++ b/platform/darwin/src/MGLStyleLayer.h.ejs @@ -35,6 +35,16 @@ typedef NS_ENUM(NSUInteger, MGL<%- camelize(type) %>StyleLayer<%- camelize(prope <% } -%> @interface MGL<%- camelize(type) %>StyleLayer : MGLBaseStyleLayer <MGLStyleLayer> +<% if (type == 'background') { -%> +- (instancetype)initWithLayerIdentifier:(NSString *)layerIdentifier; +<% } -%> + +- (instancetype)initWithLayerIdentifier:(NSString *)layerIdentifier source:(MGLSource *)source; + +<% if (type !== 'background' && type !== 'raster') { -%> +- (instancetype)initWithLayerIdentifier:(NSString *)layerIdentifier source:(MGLSource *)source sourceLayer:(NSString *)sourceLayer; +<% } -%> + <% if (type !== 'background' && type !== 'raster') { -%> /** A predicate that corresponds to the layer's <a href='https://www.mapbox.com/mapbox-gl-style-spec/#types-filter'>filter</a>. |