summaryrefslogtreecommitdiff
path: root/include/mbgl/style/layers/fill_layer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/layers/fill_layer.hpp')
-rw-r--r--include/mbgl/style/layers/fill_layer.hpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/mbgl/style/layers/fill_layer.hpp b/include/mbgl/style/layers/fill_layer.hpp
index 0c36435ffc..7ef6727691 100644
--- a/include/mbgl/style/layers/fill_layer.hpp
+++ b/include/mbgl/style/layers/fill_layer.hpp
@@ -81,11 +81,17 @@ protected:
};
class FillLayerFactory : public LayerFactory {
-protected:
+public:
+ FillLayerFactory();
// LayerFactory overrides.
~FillLayerFactory() override;
- const char* type() const final;
- std::unique_ptr<style::Layer> createLayer(const std::string& id, const conversion::Convertible& value) 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 FillLayerFactory* get();
+
+private:
+ static FillLayerFactory* instance;
};
} // namespace style