summaryrefslogtreecommitdiff
path: root/include/mbgl/style/property_value.hpp
diff options
context:
space:
mode:
authorAnand Thakker <anandthakker@users.noreply.github.com>2017-03-08 11:53:44 -0500
committerGitHub <noreply@github.com>2017-03-08 11:53:44 -0500
commitbb846fd6cdff84e71741de9428a00137fd5f73a8 (patch)
tree915421863f2d6468ad537113566ae609ff0a94be /include/mbgl/style/property_value.hpp
parentf591421aaaf698c23ccff37a03d03c87eaa0d988 (diff)
downloadqtlocation-mapboxgl-bb846fd6cdff84e71741de9428a00137fd5f73a8.tar.gz
For data-driven paint setters, transition immediately to target value (#8306)
Closes #8237
Diffstat (limited to 'include/mbgl/style/property_value.hpp')
-rw-r--r--include/mbgl/style/property_value.hpp1
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>>(); }