summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/style/layers/layer.hpp.ejs2
-rw-r--r--include/mbgl/style/layers/line_layer.hpp7
2 files changed, 8 insertions, 1 deletions
diff --git a/include/mbgl/style/layers/layer.hpp.ejs b/include/mbgl/style/layers/layer.hpp.ejs
index db7052387c..cf31a4d672 100644
--- a/include/mbgl/style/layers/layer.hpp.ejs
+++ b/include/mbgl/style/layers/layer.hpp.ejs
@@ -7,7 +7,7 @@
#pragma once
-<% if (type === 'heatmap') { -%>
+<% if (type === 'heatmap' || type === 'line') { -%>
#include <mbgl/style/color_ramp_property_value.hpp>
<% } -%>
#include <mbgl/style/layer.hpp>
diff --git a/include/mbgl/style/layers/line_layer.hpp b/include/mbgl/style/layers/line_layer.hpp
index fe4cd7c0d1..9350b3d102 100644
--- a/include/mbgl/style/layers/line_layer.hpp
+++ b/include/mbgl/style/layers/line_layer.hpp
@@ -2,6 +2,7 @@
#pragma once
+#include <mbgl/style/color_ramp_property_value.hpp>
#include <mbgl/style/layer.hpp>
#include <mbgl/style/filter.hpp>
#include <mbgl/style/property_value.hpp>
@@ -119,6 +120,12 @@ public:
void setLinePatternTransition(const TransitionOptions&);
TransitionOptions getLinePatternTransition() const;
+ static ColorRampPropertyValue getDefaultLineGradient();
+ ColorRampPropertyValue getLineGradient() const;
+ void setLineGradient(ColorRampPropertyValue);
+ void setLineGradientTransition(const TransitionOptions&);
+ TransitionOptions getLineGradientTransition() const;
+
// Private implementation
class Impl;