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