MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mbgl::style::VectorSource Class Referencefinal

#include <vector_source.hpp>

Inheritance diagram for mbgl::style::VectorSource:

Public Member Functions

 VectorSource (std::string id, variant< std::string, Tileset > urlOrTileset, std::optional< float > maxZoom=std::nullopt, std::optional< float > minZoom=std::nullopt)
 
 ~VectorSource () final
 
const variant< std::string, Tileset > & getURLOrTileset () const
 
std::optional< std::string > getURL () const
 
const Impl & impl () const
 
void loadDescription (FileSource &) final
 
bool supportsLayerType (const mbgl::style::LayerTypeInfo *) const override
 
mapbox::base::WeakPtr< Source > makeWeakPtr () override
 

Protected Member Functions

Mutable< Source::Impl > createMutable () const noexcept final
 

Detailed Description

Definition at line 13 of file vector_source.hpp.

Constructor & Destructor Documentation

◆ VectorSource()

mbgl::style::VectorSource::VectorSource ( std::string  id,
variant< std::string, Tileset urlOrTileset,
std::optional< float >  maxZoom = std::nullopt,
std::optional< float >  minZoom = std::nullopt 
)

◆ ~VectorSource()

mbgl::style::VectorSource::~VectorSource ( )
final

Member Function Documentation

◆ createMutable()

Mutable<Source::Impl> mbgl::style::VectorSource::createMutable ( ) const
finalprotectednoexcept

◆ getURL()

std::optional<std::string> mbgl::style::VectorSource::getURL ( ) const

◆ getURLOrTileset()

const variant<std::string, Tileset>& mbgl::style::VectorSource::getURLOrTileset ( ) const

◆ impl()

const Impl& mbgl::style::VectorSource::impl ( ) const

◆ loadDescription()

void mbgl::style::VectorSource::loadDescription ( FileSource )
final

◆ makeWeakPtr()

mapbox::base::WeakPtr<Source> mbgl::style::VectorSource::makeWeakPtr ( )
inlineoverride

Definition at line 29 of file vector_source.hpp.

◆ supportsLayerType()

bool mbgl::style::VectorSource::supportsLayerType ( const mbgl::style::LayerTypeInfo *  ) const
override

The documentation for this class was generated from the following file: