blob: b0b8bae6cc96437e56fd7e4dff12f0a899e6845c (
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
26
27
28
29
|
#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(makeMutable<Impl>()) {
}
AnnotationSource::Impl::Impl()
: Source::Impl(SourceType::Annotations, AnnotationManager::SourceID) {
}
void AnnotationSource::loadDescription(FileSource&) {
loaded = true;
}
optional<std::string> AnnotationSource::Impl::getAttribution() const {
return {};
}
std::unique_ptr<RenderSource> AnnotationSource::Impl::createRenderSource() const {
return std::make_unique<RenderAnnotationSource>(staticImmutableCast<AnnotationSource::Impl>(immutableFromThis()));
}
} // namespace mbgl
|