diff options
Diffstat (limited to 'include/mbgl/style/layers/background_layer.hpp')
-rw-r--r-- | include/mbgl/style/layers/background_layer.hpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/mbgl/style/layers/background_layer.hpp b/include/mbgl/style/layers/background_layer.hpp index 989ef54b21..61e95d2273 100644 --- a/include/mbgl/style/layers/background_layer.hpp +++ b/include/mbgl/style/layers/background_layer.hpp @@ -57,11 +57,17 @@ protected: }; class BackgroundLayerFactory : public LayerFactory { -protected: +public: + BackgroundLayerFactory(); // LayerFactory overrides. ~BackgroundLayerFactory() 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 BackgroundLayerFactory* get(); + +private: + static BackgroundLayerFactory* instance; }; } // namespace style |