[core] Virtualize Source::createTile
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include <mbgl/annotation/annotation_source.hpp>
|
||||
#include <mbgl/annotation/annotation_manager.hpp>
|
||||
#include <mbgl/annotation/annotation_tile.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
@@ -7,4 +8,9 @@ AnnotationSource::AnnotationSource()
|
||||
: Source(SourceType::Annotations, AnnotationManager::SourceID, "", util::tileSize, std::make_unique<Tileset>()) {
|
||||
}
|
||||
|
||||
std::unique_ptr<Tile> AnnotationSource::createTile(const OverscaledTileID& tileID,
|
||||
const style::UpdateParameters& parameters) {
|
||||
return std::make_unique<AnnotationTile>(tileID, id, parameters);
|
||||
}
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
Reference in New Issue
Block a user