#include #include #include namespace mbgl { using namespace style; AnnotationSource::AnnotationSource() : Source(makeMutable()) { } AnnotationSource::Impl::Impl() : Source::Impl(SourceType::Annotations, AnnotationManager::SourceID) { } const AnnotationSource::Impl& AnnotationSource::impl() const { return static_cast(*baseImpl); } void AnnotationSource::loadDescription(FileSource&) { loaded = true; } optional 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 AnnotationSource::createMutable() const noexcept { return staticMutableCast(makeMutable(impl())); } } // namespace mbgl