diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2018-11-05 19:49:40 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2018-11-07 16:34:20 +0200 |
commit | ffdeef3a26306e447f1cc52a8e14d42fb035611d (patch) | |
tree | 7e3217d761581161d39b2552072d1b3cef8df67a /include/mbgl/style/layers/heatmap_layer.hpp | |
parent | f560b4f9efebb4d448181724304f63b683a26b67 (diff) | |
download | qtlocation-mapboxgl-ffdeef3a26306e447f1cc52a8e14d42fb035611d.tar.gz |
Refer corresponding LayerFactory instance from the Layer::Impl
Diffstat (limited to 'include/mbgl/style/layers/heatmap_layer.hpp')
-rw-r--r-- | include/mbgl/style/layers/heatmap_layer.hpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/mbgl/style/layers/heatmap_layer.hpp b/include/mbgl/style/layers/heatmap_layer.hpp index 3f53877523..e38c6ab6e1 100644 --- a/include/mbgl/style/layers/heatmap_layer.hpp +++ b/include/mbgl/style/layers/heatmap_layer.hpp @@ -70,11 +70,17 @@ protected: }; class HeatmapLayerFactory : public LayerFactory { -protected: +public: + HeatmapLayerFactory(); // LayerFactory overrides. ~HeatmapLayerFactory() 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 HeatmapLayerFactory* get(); + +private: + static HeatmapLayerFactory* instance; }; } // namespace style |