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

#include <raster_source.hpp>

Inheritance diagram for mbgl::style::RasterSource:
mbgl::style::RasterDEMSource

Public Member Functions

 RasterSource (std::string id, variant< std::string, Tileset > urlOrTileset, uint16_t tileSize, SourceType sourceType=SourceType::Raster)
 
 ~RasterSource () override
 
const variant< std::string, Tileset > & getURLOrTileset () const
 
std::optional< std::string > getURL () const
 
uint16_t getTileSize () const
 
const Impl & impl () const
 
void loadDescription (FileSource &) final
 
bool supportsLayerType (const mbgl::style::LayerTypeInfo *) const override
 
mapbox::base::WeakPtr< Source > makeWeakPtr () final
 

Protected Member Functions

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

Detailed Description

Definition at line 13 of file raster_source.hpp.

Constructor & Destructor Documentation

◆ RasterSource()

mbgl::style::RasterSource::RasterSource ( std::string  id,
variant< std::string, Tileset urlOrTileset,
uint16_t  tileSize,
SourceType  sourceType = SourceType::Raster 
)

◆ ~RasterSource()

mbgl::style::RasterSource::~RasterSource ( )
override

Member Function Documentation

◆ createMutable()

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

◆ getTileSize()

uint16_t mbgl::style::RasterSource::getTileSize ( ) const

◆ getURL()

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

◆ getURLOrTileset()

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

◆ impl()

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

◆ loadDescription()

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

◆ makeWeakPtr()

mapbox::base::WeakPtr<Source> mbgl::style::RasterSource::makeWeakPtr ( )
inlinefinal

Definition at line 30 of file raster_source.hpp.

◆ supportsLayerType()

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

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