summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation/annotation_source.cpp
blob: 9956140179189fad01df7a93aa70a10cbc5296d0 (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
25
#include <mbgl/annotation/annotation_source.hpp>
#include <mbgl/annotation/annotation_manager.hpp>
#include <mbgl/annotation/render_annotation_source.hpp>

namespace mbgl {

using namespace style;

AnnotationSource::AnnotationSource()
    : Source(SourceType::Annotations, std::make_unique<Impl>(*this)) {
}

AnnotationSource::Impl::Impl(Source& base_)
    : Source::Impl(SourceType::Annotations, AnnotationManager::SourceID, base_) {
}

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

std::unique_ptr<RenderSource> AnnotationSource::Impl::createRenderSource() const {
    return std::make_unique<RenderAnnotationSource>(*this);
}

} // namespace mbgl