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