diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2018-08-08 15:09:27 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2018-08-23 19:01:40 +0300 |
commit | fb5afd34b9b25e993a4b109385215eba0b83923f (patch) | |
tree | 61474b72e7d099808eb85ea60275e58da11bdd39 /include | |
parent | 52275f835a38897ebf1aeb2158ccfca2272e4770 (diff) | |
download | qtlocation-mapboxgl-fb5afd34b9b25e993a4b109385215eba0b83923f.tar.gz |
[core] Add `line-gradient` property
Porting of https://github.com/mapbox/mapbox-gl-js/pull/6303
See the link above for the description of the feature and
its limitations).
Based on patch from @lbud (Lauren Budorick).
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/style/layers/layer.hpp.ejs | 2 | ||||
-rw-r--r-- | include/mbgl/style/layers/line_layer.hpp | 7 |
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; |