[core] Revert annotation source maxZoom to 22
This commit is contained in:
@@ -15,8 +15,7 @@ AnnotationSource::Impl::Impl(Source& base_)
|
||||
}
|
||||
|
||||
Range<uint8_t> AnnotationSource::Impl::getZoomRange() {
|
||||
// Same as default geojson-vt-cpp.
|
||||
return { 0, 18 };
|
||||
return { 0, 22 };
|
||||
}
|
||||
|
||||
void AnnotationSource::Impl::load(FileSource&) {
|
||||
|
||||
@@ -27,7 +27,7 @@ void ShapeAnnotationImpl::updateTileData(const CanonicalTileID& tileID, Annotati
|
||||
return Feature { std::move(geom) };
|
||||
}));
|
||||
mapbox::geojsonvt::Options options;
|
||||
options.maxZoom = util::clamp<uint8_t>(maxZoom, 0, 18);
|
||||
options.maxZoom = maxZoom;
|
||||
options.buffer = 255u;
|
||||
options.extent = util::EXTENT;
|
||||
options.tolerance = baseTolerance;
|
||||
|
||||
Reference in New Issue
Block a user