#pragma once #include #include #include namespace mbgl { namespace style { class GeoJSONData; } // namespace style class RenderGeoJSONSource : public RenderSource { public: RenderGeoJSONSource(Immutable); bool isLoaded() const final; void update(Immutable, const std::vector>&, bool needsRendering, bool needsRelayout, const TileParameters&) final; void startRender(PaintParameters&) final; void finishRender(PaintParameters&) final; std::vector> getRenderTiles() final; std::unordered_map> queryRenderedFeatures(const ScreenLineString& geometry, const TransformState& transformState, const std::vector& layers, const RenderedQueryOptions& options) const final; std::vector querySourceFeatures(const SourceQueryOptions&) const final; void onLowMemory() final; void dumpDebugLogs() const final; private: const style::GeoJSONSource::Impl& impl() const; TilePyramid tilePyramid; style::GeoJSONData* data = nullptr; }; template <> inline bool RenderSource::is() const { return baseImpl->type == style::SourceType::GeoJSON; } } // namespace mbgl