summaryrefslogtreecommitdiff
path: root/src/mbgl/style/source.cpp
blob: f10fc6916bfc91d177fcf93f7ab84a847eeb953b (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
30
#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();
}

optional<Range<uint8_t>> Source::getZoomRange() const {
    return baseImpl->getZoomRange();
}

std::vector<Feature> Source::querySourceFeatures(const SourceQueryOptions& options) {
    return baseImpl->querySourceFeatures(options);
}

} // namespace style
} // namespace mbgl