#pragma once #include #include #include namespace mbgl { class RenderVectorSource : public RenderSource { public: RenderVectorSource(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 CollisionIndex& collisionIndex) const final; std::vector querySourceFeatures(const SourceQueryOptions&) const final; void onLowMemory() final; void dumpDebugLogs() const final; private: const style::VectorSource::Impl& impl() const; TilePyramid tilePyramid; optional> tileURLTemplates; }; template <> inline bool RenderSource::is() const { return baseImpl->type == style::SourceType::Vector; } } // namespace mbgl