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

#include <geojson_source.hpp>

Inheritance diagram for mbgl::style::GeoJSONSource:

Public Member Functions

 GeoJSONSource (std::string id, Immutable< GeoJSONOptions >=GeoJSONOptions::defaultOptions())
 
 ~GeoJSONSource () final
 
void setURL (const std::string &url)
 
void setGeoJSON (const GeoJSON &)
 
void setGeoJSONData (std::shared_ptr< GeoJSONData >)
 
std::optional< std::string > getURL () const
 
const GeoJSONOptionsgetOptions () 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 58 of file geojson_source.hpp.

Constructor & Destructor Documentation

◆ GeoJSONSource()

mbgl::style::GeoJSONSource::GeoJSONSource ( std::string  id,
Immutable< GeoJSONOptions = GeoJSONOptions::defaultOptions() 
)

◆ ~GeoJSONSource()

mbgl::style::GeoJSONSource::~GeoJSONSource ( )
final

Member Function Documentation

◆ createMutable()

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

◆ getOptions()

const GeoJSONOptions& mbgl::style::GeoJSONSource::getOptions ( ) const

◆ getURL()

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

◆ impl()

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

◆ loadDescription()

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

◆ makeWeakPtr()

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

Definition at line 77 of file geojson_source.hpp.

◆ setGeoJSON()

void mbgl::style::GeoJSONSource::setGeoJSON ( const GeoJSON )

◆ setGeoJSONData()

void mbgl::style::GeoJSONSource::setGeoJSONData ( std::shared_ptr< GeoJSONData )

◆ setURL()

void mbgl::style::GeoJSONSource::setURL ( const std::string &  url)

◆ supportsLayerType()

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

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