summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/line_layer_properties.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/layers/line_layer_properties.hpp')
-rw-r--r--src/mbgl/style/layers/line_layer_properties.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mbgl/style/layers/line_layer_properties.hpp b/src/mbgl/style/layers/line_layer_properties.hpp
index 29ba9ec641..b2bd4aa401 100644
--- a/src/mbgl/style/layers/line_layer_properties.hpp
+++ b/src/mbgl/style/layers/line_layer_properties.hpp
@@ -36,6 +36,11 @@ struct LineRoundLimit : LayoutProperty<float> {
static float defaultValue() { return 1; }
};
+struct LineSortKey : DataDrivenLayoutProperty<float> {
+ static constexpr const char *name() { return "line-sort-key"; }
+ static float defaultValue() { return 0; }
+};
+
struct LineBlur : DataDrivenPaintProperty<float, attributes::blur, uniforms::blur> {
static float defaultValue() { return 0; }
};
@@ -88,7 +93,8 @@ class LineLayoutProperties : public Properties<
LineCap,
LineJoin,
LineMiterLimit,
- LineRoundLimit
+ LineRoundLimit,
+ LineSortKey
> {};
class LinePaintProperties : public Properties<