diff options
author | Anand Thakker <anandthakker@users.noreply.github.com> | 2017-03-08 11:53:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-08 11:53:44 -0500 |
commit | bb846fd6cdff84e71741de9428a00137fd5f73a8 (patch) | |
tree | 915421863f2d6468ad537113566ae609ff0a94be /include | |
parent | f591421aaaf698c23ccff37a03d03c87eaa0d988 (diff) | |
download | qtlocation-mapboxgl-bb846fd6cdff84e71741de9428a00137fd5f73a8.tar.gz |
For data-driven paint setters, transition immediately to target value (#8306)
Closes #8237
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/style/property_value.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mbgl/style/property_value.hpp b/include/mbgl/style/property_value.hpp index e784633aa7..1b7429dae6 100644 --- a/include/mbgl/style/property_value.hpp +++ b/include/mbgl/style/property_value.hpp @@ -29,6 +29,7 @@ public: bool isUndefined() const { return value.which() == 0; } bool isConstant() const { return value.which() == 1; } bool isCameraFunction() const { return value.which() == 2; } + bool isDataDriven() const { return false; } const T & asConstant() const { return value.template get< T >(); } const CameraFunction<T>& asCameraFunction() const { return value.template get<CameraFunction<T>>(); } |