summaryrefslogtreecommitdiff
path: root/src/mbgl/layer/line_layer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/layer/line_layer.hpp')
-rw-r--r--src/mbgl/layer/line_layer.hpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mbgl/layer/line_layer.hpp b/src/mbgl/layer/line_layer.hpp
index 1faf26b28f..d35461131e 100644
--- a/src/mbgl/layer/line_layer.hpp
+++ b/src/mbgl/layer/line_layer.hpp
@@ -4,10 +4,18 @@
#include <mbgl/style/style_layer.hpp>
#include <mbgl/style/style_properties.hpp>
#include <mbgl/style/paint_properties_map.hpp>
-#include <mbgl/style/class_properties.hpp>
+#include <mbgl/style/layout_property.hpp>
namespace mbgl {
+class LineLayoutProperties {
+public:
+ LayoutProperty<CapType> cap = CapType::Butt;
+ LayoutProperty<JoinType> join = JoinType::Miter;
+ LayoutProperty<float> miterLimit = 2.0f;
+ LayoutProperty<float> roundLimit = 1.0f;
+};
+
class LineLayer : public StyleLayer {
public:
std::unique_ptr<StyleLayer> clone() const override;
@@ -22,7 +30,7 @@ public:
bool hasTransitions() const override;
- ClassProperties layout;
+ LineLayoutProperties layout;
PaintPropertiesMap paints;
LinePaintProperties properties;