diff options
author | Juha Alanen <juha.alanen@mapbox.com> | 2019-08-21 14:24:25 +0300 |
---|---|---|
committer | Juha Alanen <19551460+jmalanen@users.noreply.github.com> | 2019-09-18 14:29:15 +0300 |
commit | 9e262ee55fdbc8b2e409a0d8a0da07841ef5eede (patch) | |
tree | 887f4566db3837965b102e590ba07c328ede425f /src | |
parent | 75d18e32fce61f4c20cc2fe78d4cdf5eb357ccca (diff) | |
download | qtlocation-mapboxgl-9e262ee55fdbc8b2e409a0d8a0da07841ef5eede.tar.gz |
[core] Add feature state support to isFeatureConstant expression
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/style/expression/is_constant.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/style/expression/is_constant.cpp b/src/mbgl/style/expression/is_constant.cpp index 9704168a41..5f8215c55f 100644 --- a/src/mbgl/style/expression/is_constant.cpp +++ b/src/mbgl/style/expression/is_constant.cpp @@ -20,7 +20,8 @@ bool isFeatureConstant(const Expression& expression) { } else if ( name == "properties" || name == "geometry-type" || - name == "id" + name == "id" || + name == "feature-state" ) { return false; } else if (0u == name.rfind(filter, 0u)) { |