Since client code can readily access the individual sources, Map doesn’t need to expose a dedicated API for iterating over them.
23 lines
468 B
C++
23 lines
468 B
C++
#include <mbgl/style/source.hpp>
|
|
#include <mbgl/style/source_impl.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace style {
|
|
|
|
Source::Source(SourceType type_, std::unique_ptr<Impl> baseImpl_)
|
|
: baseImpl(std::move(baseImpl_)), type(type_) {
|
|
}
|
|
|
|
Source::~Source() = default;
|
|
|
|
const std::string& Source::getID() const {
|
|
return baseImpl->id;
|
|
}
|
|
|
|
optional<std::string> Source::getAttribution() const {
|
|
return baseImpl->getAttribution();
|
|
}
|
|
|
|
} // namespace style
|
|
} // namespace mbgl
|