summaryrefslogtreecommitdiff
path: root/src/mbgl/layer/fill_layer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/layer/fill_layer.hpp')
-rw-r--r--src/mbgl/layer/fill_layer.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mbgl/layer/fill_layer.hpp b/src/mbgl/layer/fill_layer.hpp
index ee079a5c8a..3b1c5a84fe 100644
--- a/src/mbgl/layer/fill_layer.hpp
+++ b/src/mbgl/layer/fill_layer.hpp
@@ -19,6 +19,7 @@ public:
class FillLayer : public StyleLayer {
public:
+ FillLayer() : StyleLayer(Type::Fill) {}
std::unique_ptr<StyleLayer> clone() const override;
void parseLayout(const JSValue&) override {};
@@ -32,6 +33,11 @@ public:
FillPaintProperties paint;
};
+template <>
+inline bool StyleLayer::is<FillLayer>() const {
+ return type == Type::Fill;
+}
+
} // namespace mbgl
#endif