33 std::shared_ptr<mbgl::style::expression::Expression>>;
42 using Features = mapbox::feature::feature_collection<double>;
45 std::shared_ptr<Scheduler> scheduler =
nullptr);
55 virtual std::shared_ptr<Scheduler>
getScheduler() {
return nullptr; }
78 return weakFactory.makeWeakPtr();
85 std::optional<
std::
string> url;
88 mapbox::base::WeakPtrFactory<Source> weakFactory {
this};
92 inline bool Source::is<GeoJSONSource>()
const {
virtual Features getLeaves(std::uint32_t, std::uint32_t limit, std::uint32_t offset)=0
mapbox::feature::feature_collection< int16_t > TileFeatures
virtual Features getChildren(std::uint32_t)=0
virtual std::uint8_t getClusterExpansionZoom(std::uint32_t)=0
mapbox::feature::feature_collection< double > Features
virtual void getTile(const CanonicalTileID &, const std::function< void(TileFeatures)> &)=0
virtual ~GeoJSONData()=default
virtual std::shared_ptr< Scheduler > getScheduler()
static std::shared_ptr< GeoJSONData > create(const GeoJSON &, const Immutable< GeoJSONOptions > &=GeoJSONOptions::defaultOptions(), std::shared_ptr< Scheduler > scheduler=nullptr)
void setGeoJSON(const GeoJSON &)
void loadDescription(FileSource &) final
std::optional< std::string > getURL() const
const Impl & impl() const
void setGeoJSONData(std::shared_ptr< GeoJSONData >)
void setURL(const std::string &url)
mapbox::base::WeakPtr< Source > makeWeakPtr() override
Mutable< Source::Impl > createMutable() const noexcept final
const GeoJSONOptions & getOptions() const
bool supportsLayerType(const mbgl::style::LayerTypeInfo *) const override
GeoJSONSource(std::string id, Immutable< GeoJSONOptions >=GeoJSONOptions::defaultOptions())
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
constexpr uint16_t tileSize_I
mapbox::geojson::geojson GeoJSON
std::pair< std::shared_ptr< mbgl::style::expression::Expression >, std::shared_ptr< mbgl::style::expression::Expression > > ClusterExpression
ClusterProperties clusterProperties
static Immutable< GeoJSONOptions > defaultOptions()
std::map< std::string, ClusterExpression > ClusterProperties