summaryrefslogtreecommitdiff
path: root/include/mbgl/style/layers/symbol_layer.hpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2018-11-05 19:49:40 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2018-11-07 16:34:20 +0200
commitffdeef3a26306e447f1cc52a8e14d42fb035611d (patch)
tree7e3217d761581161d39b2552072d1b3cef8df67a /include/mbgl/style/layers/symbol_layer.hpp
parentf560b4f9efebb4d448181724304f63b683a26b67 (diff)
downloadqtlocation-mapboxgl-ffdeef3a26306e447f1cc52a8e14d42fb035611d.tar.gz
Refer corresponding LayerFactory instance from the Layer::Impl
Diffstat (limited to 'include/mbgl/style/layers/symbol_layer.hpp')
-rw-r--r--include/mbgl/style/layers/symbol_layer.hpp12
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