From 0be0225ad9d45b8f9f642c4c5bdc172e2867ed81 Mon Sep 17 00:00:00 2001 From: Karim Naaji Date: Thu, 14 May 2020 13:55:19 -0700 Subject: [PATCH] Silence inconsistent flow error --- src/style/style_layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style/style_layer.js b/src/style/style_layer.js index 4203632a888..43d769f3bae 100644 --- a/src/style/style_layer.js +++ b/src/style/style_layer.js @@ -90,7 +90,6 @@ class StyleLayer extends Evented { } if (properties.paint) { - this._transitionablePaint = new Transitionable(properties.paint); for (const property in layer.paint) { @@ -101,6 +100,7 @@ class StyleLayer extends Evented { } this._transitioningPaint = this._transitionablePaint.untransitioned(); + //$FlowFixMe this.paint = new PossiblyEvaluated(properties.paint); } }