blob: 82e985b5d57321b49bb110339b8c026eac304fd2 (
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
31
32
33
34
35
36
37
38
39
40
|
#include <mbgl/style/sources/custom_vector_source_impl.hpp>
#include <mbgl/style/source_observer.hpp>
namespace mbgl {
namespace style {
CustomVectorSource::Impl::Impl(std::string id_,
const CustomVectorSource::Options options)
: Source::Impl(SourceType::CustomVector, std::move(id_)),
tileOptions(options.tileOptions),
zoomRange(options.zoomRange),
loaderRef({}) {
}
CustomVectorSource::Impl::Impl(const Impl& impl, ActorRef<CustomTileLoader> loaderRef_)
: Source::Impl(impl),
tileOptions(impl.tileOptions),
zoomRange(impl.zoomRange),
loaderRef(loaderRef_){
}
optional<std::string> CustomVectorSource::Impl::getAttribution() const {
return {};
}
CustomVectorSource::TileOptions CustomVectorSource::Impl::getTileOptions() const {
return tileOptions;
}
Range<uint8_t> CustomVectorSource::Impl::getZoomRange() const {
return zoomRange;
}
optional<ActorRef<CustomTileLoader>> CustomVectorSource::Impl::getTileLoader() const {
return loaderRef;
}
} // namespace style
} // namespace mbgl
|