diff --git a/ios/RNMBX/RNMBXBackgroundLayer.swift b/ios/RNMBX/RNMBXBackgroundLayer.swift index 43508bae8..095b3d386 100644 --- a/ios/RNMBX/RNMBXBackgroundLayer.swift +++ b/ios/RNMBX/RNMBXBackgroundLayer.swift @@ -30,7 +30,7 @@ public class RNMBXBackgroundLayer: RNMBXLayer { styler.backgroundLayer( layer: &styleLayer, reactStyle: reactStyle, - oldReactStyle: oldReatStyle, + oldReactStyle: oldReactStyle, applyUpdater: { (updater) in logged("RNMBXBackgroundLayer.addStyles") { try style.updateLayer(withId: self.id, type: LayerType.self) { (layer: inout LayerType) in updater(&layer) } }}, diff --git a/ios/RNMBX/RNMBXCircleLayer.swift b/ios/RNMBX/RNMBXCircleLayer.swift index e18a1ccde..fdb28faf2 100644 --- a/ios/RNMBX/RNMBXCircleLayer.swift +++ b/ios/RNMBX/RNMBXCircleLayer.swift @@ -80,7 +80,7 @@ public class RNMBXCircleLayer: RNMBXVectorLayer { styler.circleLayer( layer: &styleLayer, reactStyle: reactStyle, - oldReactStyle: oldReatStyle, + oldReactStyle: oldReactStyle, applyUpdater: { (updater) in logged("RNMBXCircleLayer.updateLayer") { try style.updateLayer(withId: self.id, type: LayerType.self) { (layer: inout LayerType) in updater(&layer) } }}, diff --git a/ios/RNMBX/RNMBXFillExtrusionLayer.swift b/ios/RNMBX/RNMBXFillExtrusionLayer.swift index 9445615a9..d40368911 100644 --- a/ios/RNMBX/RNMBXFillExtrusionLayer.swift +++ b/ios/RNMBX/RNMBXFillExtrusionLayer.swift @@ -78,7 +78,7 @@ public class RNMBXFillExtrusionLayer: RNMBXVectorLayer { styler.fillExtrusionLayer( layer: &styleLayer, reactStyle: reactStyle, - oldReactStyle: oldReatStyle, + oldReactStyle: oldReactStyle, applyUpdater: { (updater) in logged("RNMBXFillExtrusionLayer.updateLayer") { try style.updateLayer(withId: self.id, type: LayerType.self) { (layer: inout LayerType) in updater(&layer) } }}, diff --git a/ios/RNMBX/RNMBXFillLayer.swift b/ios/RNMBX/RNMBXFillLayer.swift index fdfd65f8b..330030665 100644 --- a/ios/RNMBX/RNMBXFillLayer.swift +++ b/ios/RNMBX/RNMBXFillLayer.swift @@ -80,7 +80,7 @@ public class RNMBXFillLayer: RNMBXVectorLayer { styler.fillLayer( layer: &styleLayer, reactStyle: reactStyle, - oldReactStyle: oldReatStyle, + oldReactStyle: oldReactStyle, applyUpdater: { (updater) in logged("RNMBXFillLayer.updateLayer") { try style.updateLayer(withId: self.id, type: LayerType.self) { (layer: inout FillLayer) in updater(&layer) } }}, diff --git a/ios/RNMBX/RNMBXHeatmapLayer.swift b/ios/RNMBX/RNMBXHeatmapLayer.swift index f82e122c5..56ca5ea1b 100644 --- a/ios/RNMBX/RNMBXHeatmapLayer.swift +++ b/ios/RNMBX/RNMBXHeatmapLayer.swift @@ -34,7 +34,7 @@ public class RNMBXHeatmapLayer: RNMBXVectorLayer { styler.heatmapLayer( layer: &styleLayer, reactStyle: reactStyle, - oldReactStyle: oldReatStyle, + oldReactStyle: oldReactStyle, applyUpdater: { (updater) in logged("RNMBXHeatmapLayer.updateLayer") { try style.updateLayer(withId: self.id, type: LayerType.self) { (layer: inout HeatmapLayer) in updater(&layer) } }}, diff --git a/ios/RNMBX/RNMBXHillshadeLayer.swift b/ios/RNMBX/RNMBXHillshadeLayer.swift index bcca74584..772938302 100644 --- a/ios/RNMBX/RNMBXHillshadeLayer.swift +++ b/ios/RNMBX/RNMBXHillshadeLayer.swift @@ -73,7 +73,7 @@ public class RNMBXHillshadeLayer: RNMBXLayer { styler.hillshadeLayer( layer: &styleLayer, reactStyle: reactStyle, - oldReactStyle: oldReatStyle, + oldReactStyle: oldReactStyle, applyUpdater:{ (updater) in logged("RNMBXHillshadeLayer.updateLayer") { try style.updateLayer(withId: self.id, type: LayerType.self) { (layer: inout LayerType) in updater(&layer) } }}, diff --git a/ios/RNMBX/RNMBXLayer.swift b/ios/RNMBX/RNMBXLayer.swift index 62e065606..1967a5ea7 100644 --- a/ios/RNMBX/RNMBXLayer.swift +++ b/ios/RNMBX/RNMBXLayer.swift @@ -19,10 +19,10 @@ public class RNMBXLayer : UIView, RNMBXMapComponent, RNMBXSourceConsumer { didSet { self.optionsChanged() } } - var oldReatStyle: Dictionary? = nil + var oldReactStyle: Dictionary? = nil @objc public var reactStyle : Dictionary? = nil { willSet { - oldReatStyle = reactStyle + oldReactStyle = reactStyle } didSet { DispatchQueue.main.async { diff --git a/ios/RNMBX/RNMBXLineLayer.swift b/ios/RNMBX/RNMBXLineLayer.swift index 4ead3bab5..0ab48cc3c 100644 --- a/ios/RNMBX/RNMBXLineLayer.swift +++ b/ios/RNMBX/RNMBXLineLayer.swift @@ -79,7 +79,7 @@ public class RNMBXLineLayer: RNMBXVectorLayer { styler.lineLayer( layer: &styleLayer, reactStyle: reactStyle, - oldReactStyle: oldReatStyle, + oldReactStyle: oldReactStyle, applyUpdater: { (updater) in logged("RNMBXLineLayer.updateLayer") { try style.updateLayer(withId: self.id, type: LayerType.self) { (layer: inout LayerType) in updater(&layer) } }}, diff --git a/ios/RNMBX/RNMBXModelLayer.swift b/ios/RNMBX/RNMBXModelLayer.swift index 425e97912..c53114552 100644 --- a/ios/RNMBX/RNMBXModelLayer.swift +++ b/ios/RNMBX/RNMBXModelLayer.swift @@ -79,7 +79,7 @@ public class RNMBXModelLayer: RNMBXVectorLayer { styler.modelLayer( layer: &styleLayer, reactStyle: reactStyle, - oldReactStyle: oldReatStyle, + oldReactStyle: oldReactStyle, applyUpdater: { (updater) in logged("RNMBXModelLayer.updateLayer") { try style.updateLayer(withId: self.id, type: LayerType.self) { (layer: inout LayerType) in updater(&layer) } }}, diff --git a/ios/RNMBX/RNMBXRasterLayer.swift b/ios/RNMBX/RNMBXRasterLayer.swift index 97942e283..230431f98 100644 --- a/ios/RNMBX/RNMBXRasterLayer.swift +++ b/ios/RNMBX/RNMBXRasterLayer.swift @@ -74,7 +74,7 @@ public class RNMBXRasterLayer: RNMBXLayer { styler.rasterLayer( layer: &styleLayer, reactStyle: reactStyle, - oldReactStyle: oldReatStyle, + oldReactStyle: oldReactStyle, applyUpdater:{ (updater) in logged("RNMBXRasterLayer.updateLayer") { try style.updateLayer(withId: self.id, type: LayerType.self) { (layer: inout LayerType) in updater(&layer) } }}, diff --git a/ios/RNMBX/RNMBXRasterParticleLayer.swift b/ios/RNMBX/RNMBXRasterParticleLayer.swift index 53caf1cd0..a7a6d442f 100644 --- a/ios/RNMBX/RNMBXRasterParticleLayer.swift +++ b/ios/RNMBX/RNMBXRasterParticleLayer.swift @@ -73,7 +73,7 @@ public class RNMBXRasterParticleLayer: RNMBXLayer { styler.rasterParticleLayer( layer: &styleLayer, reactStyle: reactStyle, - oldReactStyle: oldReatStyle, + oldReactStyle: oldReactStyle, applyUpdater:{ (updater) in logged("RNMBXRasterParticleLayer.updateLayer") { try style.updateLayer(withId: self.id, type: LayerType.self) { (layer: inout LayerType) in updater(&layer) } }}, diff --git a/ios/RNMBX/RNMBXSkyLayer.swift b/ios/RNMBX/RNMBXSkyLayer.swift index a2d92cd09..42683f54a 100644 --- a/ios/RNMBX/RNMBXSkyLayer.swift +++ b/ios/RNMBX/RNMBXSkyLayer.swift @@ -54,7 +54,7 @@ public class RNMBXSkyLayer: RNMBXLayer { styler.skyLayer( layer: &styleLayer, reactStyle: reactStyle, - oldReactStyle: oldReatStyle, + oldReactStyle: oldReactStyle, applyUpdater: { (updater) in logged("RNMBXSkyLayer.addStyles") { try style.updateLayer(withId: self.id, type: LayerType.self) { (layer: inout LayerType) in updater(&layer) } }}, diff --git a/ios/RNMBX/RNMBXSymbolLayer.swift b/ios/RNMBX/RNMBXSymbolLayer.swift index 1b9c7a5e4..a2e2a357d 100644 --- a/ios/RNMBX/RNMBXSymbolLayer.swift +++ b/ios/RNMBX/RNMBXSymbolLayer.swift @@ -80,7 +80,7 @@ public class RNMBXSymbolLayer: RNMBXVectorLayer { styler.symbolLayer( layer: &styleLayer, reactStyle: reactStyle, - oldReactStyle: oldReatStyle, + oldReactStyle: oldReactStyle, applyUpdater: { (updater) in logged("RNMBXSymbolLayer.updateLayer") { try style.updateLayer(withId: self.id, type: LayerType.self) { (layer: inout LayerType) in updater(&layer) } }},