summaryrefslogtreecommitdiff
path: root/include/mbgl/style/layers/custom_layer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/layers/custom_layer.hpp')
-rw-r--r--include/mbgl/style/layers/custom_layer.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/mbgl/style/layers/custom_layer.hpp b/include/mbgl/style/layers/custom_layer.hpp
index 4ae59dfae3..f58e41adf5 100644
--- a/include/mbgl/style/layers/custom_layer.hpp
+++ b/include/mbgl/style/layers/custom_layer.hpp
@@ -85,5 +85,19 @@ public:
Mutable<Layer::Impl> mutableBaseImpl() const final;
};
+class CustomLayerFactory : public LayerFactory {
+public:
+ CustomLayerFactory();
+ // LayerFactory overrides.
+ ~CustomLayerFactory() override;
+ bool supportsType(const std::string& type) const final;
+ std::unique_ptr<style::Layer> createLayer(const std::string& id, const conversion::Convertible& value) final;
+
+ static CustomLayerFactory* get();
+
+private:
+ static CustomLayerFactory* instance;
+};
+
} // namespace style
} // namespace mbgl