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