summaryrefslogtreecommitdiff
path: root/include/mbgl/style/layer_properties.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/layer_properties.hpp')
-rw-r--r--include/mbgl/style/layer_properties.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mbgl/style/layer_properties.hpp b/include/mbgl/style/layer_properties.hpp
index 89d599dfbc..301a048e50 100644
--- a/include/mbgl/style/layer_properties.hpp
+++ b/include/mbgl/style/layer_properties.hpp
@@ -25,5 +25,10 @@ inline const auto& getEvaluated(const Immutable<LayerProperties>& properties) {
return static_cast<const Derived&>(*properties).evaluated;
}
+template <class Derived>
+inline const auto& getCrossfade(const Immutable<LayerProperties>& properties) {
+ return static_cast<const Derived&>(*properties).crossfade;
+}
+
} // namespace style
} // namespace mbgl