summaryrefslogtreecommitdiff
path: root/src/mbgl/layer/circle_layer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/layer/circle_layer.hpp')
-rw-r--r--src/mbgl/layer/circle_layer.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mbgl/layer/circle_layer.hpp b/src/mbgl/layer/circle_layer.hpp
index 03169ca065..036bf79991 100644
--- a/src/mbgl/layer/circle_layer.hpp
+++ b/src/mbgl/layer/circle_layer.hpp
@@ -22,6 +22,7 @@ public:
class CircleLayer : public StyleLayer {
public:
+ CircleLayer() : StyleLayer(Type::Circle) {}
std::unique_ptr<StyleLayer> clone() const override;
void parseLayout(const JSValue&) override {};
@@ -35,6 +36,11 @@ public:
CirclePaintProperties paint;
};
+template <>
+inline bool StyleLayer::is<CircleLayer>() const {
+ return type == Type::Circle;
+}
+
} // namespace mbgl
#endif