summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources/custom_vector_source_impl.cpp
blob: 1b5ee4e5d1e0c3ecb1d52d86a056ce7e2aac0d53 (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
#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_,
                               FetchTileFunction fetchTileFn_)
    : Source::Impl(SourceType::CustomVector, std::move(id_)),
      options(options_),
      fetchTileFn(fetchTileFn_) {
}

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

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

FetchTileFunction CustomVectorSource::Impl::getFetchTileFunction() const {
    return fetchTileFn;
}

} // namespace style
} // namespace mbgl