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
|
#include <mbgl/style/sources/custom_vector_source.hpp>
#include <mbgl/style/sources/custom_vector_source_impl.hpp>
namespace mbgl {
namespace style {
CustomVectorSource::CustomVectorSource(std::string id, GeoJSONOptions options, std::function<void(uint8_t, uint32_t, uint32_t)> fetchTile)
: Source(SourceType::Vector, std::make_unique<CustomVectorSource::Impl>(std::move(id), *this, options, fetchTile)),
impl(static_cast<Impl*>(baseImpl.get())) {
}
void CustomVectorSource::setTileData(uint8_t z, uint32_t x, uint32_t y, const mapbox::geojson::geojson& geoJSON) {
impl->setTileData(z, x, y, geoJSON);
}
void CustomVectorSource::reloadRegion(mbgl::LatLngBounds bounds, uint8_t z) {
impl->reloadRegion(bounds, z);
}
void CustomVectorSource::updateTile(uint8_t z, uint32_t x, uint32_t y) {
impl->updateTile(z, x, y);
}
void CustomVectorSource::reload() {
impl->reload();
}
} // namespace style
} // namespace mbgl
|