MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
custom_layer_factory.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 #include <mbgl/style/layer.hpp>
5 
6 #include <array>
7 
8 namespace mbgl {
9 
11 protected:
12  const style::LayerTypeInfo* getTypeInfo() const noexcept final;
13  std::unique_ptr<style::Layer> createLayer(const std::string& id, const style::conversion::Convertible& value) noexcept final;
14  std::unique_ptr<RenderLayer> createRenderLayer(Immutable<style::Layer::Impl>) noexcept final;
15 };
16 
17 } // namespace mbgl
std::unique_ptr< style::Layer > createLayer(const std::string &id, const style::conversion::Convertible &value) noexcept final
Returns a new Layer instance on success call; returns nullptr otherwise.
const style::LayerTypeInfo * getTypeInfo() const noexcept final
Returns the layer type data.
std::unique_ptr< RenderLayer > createRenderLayer(Immutable< style::Layer::Impl >) noexcept final
Returns a new RenderLayer instance.
The LayerFactory abstract class.
Definition: actor.hpp:15
Definition: tile_id.hpp:256