summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources/custom_vector_source_impl.cpp
blob: d1f20045cb061e68419902f82adbca098dcb6a22 (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
#include <mbgl/style/sources/custom_vector_source_impl.hpp>

#include <mbgl/style/source_observer.hpp>
#include <mbgl/tile/geojson_tile.hpp>
#include <mbgl/tile/vector_tile.hpp>
#include <mbgl/util/tile_cover.hpp>

namespace mbgl {
namespace style {

CustomVectorSource::Impl::Impl(std::string id_,
                               const GeoJSONOptions options_)
    : Source::Impl(SourceType::CustomVector, std::move(id_)),
      options(options_),
      loaderRef({}) {
}

CustomVectorSource::Impl::Impl(const Impl& impl, ActorRef<CustomTileLoader> loaderRef_)
    : Source::Impl(impl),
    options(impl.options),
    loaderRef(loaderRef_){
    
}

optional<std::string> CustomVectorSource::Impl::getAttribution() const {
    return {};
}

GeoJSONOptions CustomVectorSource::Impl::getOptions() const {
    return options;
}

optional<ActorRef<CustomTileLoader>> CustomVectorSource::Impl::getTileLoader() const {
    return loaderRef;
}

} // namespace style
} // namespace mbgl