From fb5afd34b9b25e993a4b109385215eba0b83923f Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Wed, 8 Aug 2018 15:09:27 +0300 Subject: [core] Add `line-gradient` property Porting of https://github.com/mapbox/mapbox-gl-js/pull/6303 See the link above for the description of the feature and its limitations). Based on patch from @lbud (Lauren Budorick). --- src/mbgl/style/expression/parsing_context.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mbgl/style/expression/parsing_context.cpp') diff --git a/src/mbgl/style/expression/parsing_context.cpp b/src/mbgl/style/expression/parsing_context.cpp index ef17caed33..3fe50aa1e4 100644 --- a/src/mbgl/style/expression/parsing_context.cpp +++ b/src/mbgl/style/expression/parsing_context.cpp @@ -69,7 +69,8 @@ bool isConstant(const Expression& expression) { } return isFeatureConstant(expression) && - isGlobalPropertyConstant(expression, std::array{{"zoom", "heatmap-density"}}); + isGlobalPropertyConstant(expression, std::array{{"zoom", "heatmap-density"}}) && + isGlobalPropertyConstant(expression, std::array{{"zoom", "line-progress"}}); } using namespace mbgl::style::conversion; -- cgit v1.2.1