[core] Revert annotation source maxZoom to 22

This commit is contained in:
Bruno de Oliveira Abinader
2016-07-26 16:34:55 +03:00
parent 26a9213f6e
commit 253a3dbc58
2 changed files with 2 additions and 3 deletions

View File

@@ -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&) {

View File

@@ -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;