diff --git a/ios/MLRN/MLRNStyle.m b/ios/MLRN/MLRNStyle.m index a982d12e..5861c178 100644 --- a/ios/MLRN/MLRNStyle.m +++ b/ios/MLRN/MLRNStyle.m @@ -24,10 +24,6 @@ - (void)fillLayer:(MLNFillStyleLayer *)layer withReactStyle:(NSDictionary *)reac NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"fillSortKey"]) { @@ -88,10 +84,6 @@ - (void)lineLayer:(MLNLineStyleLayer *)layer withReactStyle:(NSDictionary *)reac NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"lineCap"]) { @@ -176,10 +168,6 @@ - (void)symbolLayer:(MLNSymbolStyleLayer *)layer withReactStyle:(NSDictionary *) NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"symbolPlacement"]) { @@ -348,10 +336,6 @@ - (void)circleLayer:(MLNCircleStyleLayer *)layer withReactStyle:(NSDictionary *) NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"circleSortKey"]) { @@ -411,10 +395,6 @@ - (void)heatmapLayer:(MLNHeatmapStyleLayer *)layer withReactStyle:(NSDictionary NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"visibility"]) { @@ -450,10 +430,6 @@ - (void)fillExtrusionLayer:(MLNFillExtrusionStyleLayer *)layer withReactStyle:(N NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"visibility"]) { @@ -516,10 +492,6 @@ - (void)rasterLayer:(MLNRasterStyleLayer *)layer withReactStyle:(NSDictionary *) NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"visibility"]) { @@ -567,10 +539,6 @@ - (void)hillshadeLayer:(MLNHillshadeStyleLayer *)layer withReactStyle:(NSDiction NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"visibility"]) { @@ -610,10 +578,6 @@ - (void)backgroundLayer:(MLNBackgroundStyleLayer *)layer withReactStyle:(NSDicti NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"visibility"]) { @@ -660,10 +624,6 @@ - (void)lightLayer:(MLNLight *)layer withReactStyle:(NSDictionary *)reactStyle i NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; if ([prop isEqualToString:@"anchor"]) { diff --git a/scripts/templates/MLRNStyle.m.ejs b/scripts/templates/MLRNStyle.m.ejs index c55f7ae7..9e112468 100644 --- a/scripts/templates/MLRNStyle.m.ejs +++ b/scripts/templates/MLRNStyle.m.ejs @@ -28,10 +28,6 @@ NSArray *styleProps = [reactStyle allKeys]; for (NSString *prop in styleProps) { - if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) { - continue; - } - MLRNStyleValue *styleValue = [MLRNStyleValue make:reactStyle[prop]]; <% for (let i = 0; i < layer.properties.length; i++) { -%>