[core] *TileMonitor => *TileSource
This commit is contained in:
27
src/mbgl/tile/annotation_tile_source.hpp
Normal file
27
src/mbgl/tile/annotation_tile_source.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/tile/tile_source.hpp>
|
||||
#include <mbgl/tile/tile_id.hpp>
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
class AnnotationManager;
|
||||
|
||||
class AnnotationTileSource : public GeometryTileSource {
|
||||
public:
|
||||
AnnotationTileSource(const OverscaledTileID&, AnnotationManager&);
|
||||
~AnnotationTileSource();
|
||||
|
||||
void update(std::unique_ptr<GeometryTile>);
|
||||
std::unique_ptr<AsyncRequest> monitorTile(const GeometryTileSource::Callback&) override;
|
||||
|
||||
OverscaledTileID tileID;
|
||||
|
||||
private:
|
||||
AnnotationManager& annotationManager;
|
||||
GeometryTileSource::Callback callback;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
Reference in New Issue
Block a user