summaryrefslogtreecommitdiff
path: root/src/mbgl/style/paint_property.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/paint_property.hpp')
-rw-r--r--src/mbgl/style/paint_property.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbgl/style/paint_property.hpp b/src/mbgl/style/paint_property.hpp
index 6035f06583..6fe53de573 100644
--- a/src/mbgl/style/paint_property.hpp
+++ b/src/mbgl/style/paint_property.hpp
@@ -224,6 +224,11 @@ public:
void setTransition(const TransitionOptions& value, const optional<std::string>& klass) {
cascading.template get<P>().setTransition(value, klass);
}
+
+ template <class P>
+ auto getTransition(const optional<std::string>& klass) const {
+ return cascading.template get<P>().getTransition(klass);
+ }
void cascade(const CascadeParameters& parameters) {
unevaluated = Unevaluated {