summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation/annotation_source.cpp
blob: 55e6fc82a319e7a50872bc58261e1048065e2ff1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <mbgl/annotation/annotation_source.hpp>
#include <mbgl/annotation/annotation_manager.hpp>
#include <mbgl/annotation/annotation_tile.hpp>

namespace mbgl {

AnnotationSource::AnnotationSource()
    : Source(SourceType::Annotations, AnnotationManager::SourceID, "", util::tileSize) {
}

Range<uint8_t> AnnotationSource::getZoomRange() {
    return { 0, 22 };
}

void AnnotationSource::load(FileSource&) {
    loaded = true;
}

std::unique_ptr<Tile> AnnotationSource::createTile(const OverscaledTileID& tileID,
                                                   const style::UpdateParameters& parameters) {
    return std::make_unique<AnnotationTile>(tileID, id, parameters);
}

} // namespace mbgl