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