diff options
Diffstat (limited to 'src/mbgl/layer/line_layer.hpp')
-rw-r--r-- | src/mbgl/layer/line_layer.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mbgl/layer/line_layer.hpp b/src/mbgl/layer/line_layer.hpp index 027f7a9c06..200541c620 100644 --- a/src/mbgl/layer/line_layer.hpp +++ b/src/mbgl/layer/line_layer.hpp @@ -38,6 +38,7 @@ public: class LineLayer : public StyleLayer { public: + LineLayer() : StyleLayer(Type::Line) {} std::unique_ptr<StyleLayer> clone() const override; void parseLayout(const JSValue&) override; @@ -52,6 +53,11 @@ public: LinePaintProperties paint; }; +template <> +inline bool StyleLayer::is<LineLayer>() const { + return type == Type::Line; +} + } // namespace mbgl #endif |