From 693c9f3641b3189b4cd439049904c95a516ae609 Mon Sep 17 00:00:00 2001 From: Anand Thakker Date: Thu, 6 Apr 2017 15:29:59 -0400 Subject: [core] Add DDS support for {text,icon}-size (#8593) * Update gl-js and generate style code * Factor out packUint8Pair() helper function * Draft implementation of DDS for {text,icon}-size Ports https://github.com/mapbox/mapbox-gl-js/pull/4455 * Fix text-size/composite-function-line-placement test * Refactor to PaintPropertyBinders-like strategy * Dedupe gl::Program construction * Use exponential function base for interpolation * Dedupe coveringZoomStops method * Fixup tests * Fix CI errors (hidden within #if block) --- include/mbgl/style/data_driven_property_value.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/mbgl/style/data_driven_property_value.hpp') diff --git a/include/mbgl/style/data_driven_property_value.hpp b/include/mbgl/style/data_driven_property_value.hpp index 3f9ac69436..5acf800840 100644 --- a/include/mbgl/style/data_driven_property_value.hpp +++ b/include/mbgl/style/data_driven_property_value.hpp @@ -45,6 +45,15 @@ public: bool isDataDriven() const { return value.template is>() || value.template is>(); } + + bool isZoomConstant() const { + return !value.template is>() && !value.template is>(); + } + + template + auto match(Ts&&... ts) const { + return value.match(std::forward(ts)...); + } template auto evaluate(const Evaluator& evaluator) const { -- cgit v1.2.1