1 #include <mbgl/style/sources/custom_geometry_source_impl.hpp>
2 #include <mbgl/style/source_observer.hpp>
3 
4 namespace mbgl {
5 namespace style {
6 
Impl(std::string id_,const CustomGeometrySource::Options options)7 CustomGeometrySource::Impl::Impl(std::string id_,
8                                const CustomGeometrySource::Options options)
9     : Source::Impl(SourceType::CustomVector, std::move(id_)),
10       tileOptions(options.tileOptions),
11       zoomRange(options.zoomRange),
12       loaderRef({}) {
13 }
14 
Impl(const Impl & impl,ActorRef<CustomTileLoader> loaderRef_)15 CustomGeometrySource::Impl::Impl(const Impl& impl, ActorRef<CustomTileLoader> loaderRef_)
16     : Source::Impl(impl),
17     tileOptions(impl.tileOptions),
18     zoomRange(impl.zoomRange),
19     loaderRef(loaderRef_){
20 
21 }
22 
getAttribution() const23 optional<std::string> CustomGeometrySource::Impl::getAttribution() const {
24     return {};
25 }
26 
getTileOptions() const27 CustomGeometrySource::TileOptions CustomGeometrySource::Impl::getTileOptions() const {
28     return tileOptions;
29 }
30 
getZoomRange() const31 Range<uint8_t> CustomGeometrySource::Impl::getZoomRange() const {
32     return zoomRange;
33 }
34 
getTileLoader() const35 optional<ActorRef<CustomTileLoader>> CustomGeometrySource::Impl::getTileLoader() const {
36     return loaderRef;
37 }
38 
39 } // namespace style
40 } // namespace mbgl
41