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