[general] moving ios and android project under ./platform folder
This commit is contained in:
37
src/mbgl/annotation/annotation_source.cpp
Normal file
37
src/mbgl/annotation/annotation_source.cpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#include <mbgl/annotation/annotation_manager.hpp>
|
||||
#include <mbgl/annotation/annotation_source.hpp>
|
||||
#include <mbgl/style/layer.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
using namespace style;
|
||||
|
||||
AnnotationSource::AnnotationSource()
|
||||
: Source(makeMutable<Impl>()) {
|
||||
}
|
||||
|
||||
AnnotationSource::Impl::Impl()
|
||||
: Source::Impl(SourceType::Annotations, AnnotationManager::SourceID) {
|
||||
}
|
||||
|
||||
const AnnotationSource::Impl& AnnotationSource::impl() const {
|
||||
return static_cast<const Impl&>(*baseImpl);
|
||||
}
|
||||
|
||||
void AnnotationSource::loadDescription(FileSource&) {
|
||||
loaded = true;
|
||||
}
|
||||
|
||||
optional<std::string> AnnotationSource::Impl::getAttribution() const {
|
||||
return {};
|
||||
}
|
||||
|
||||
bool AnnotationSource::supportsLayerType(const mbgl::style::LayerTypeInfo* info) const {
|
||||
return !std::strcmp(info->type, "line") || !std::strcmp(info->type, "symbol") || !std::strcmp(info->type, "fill");
|
||||
}
|
||||
|
||||
Mutable<Source::Impl> AnnotationSource::createMutable() const noexcept {
|
||||
return staticMutableCast<Source::Impl>(makeMutable<Impl>(impl()));
|
||||
}
|
||||
|
||||
} // namespace mbgl
|
||||
Reference in New Issue
Block a user