From 253a3dbc58761cfecea658ba83b469f516a98526 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Tue, 26 Jul 2016 16:34:55 +0300 Subject: [PATCH] [core] Revert annotation source maxZoom to 22 --- src/mbgl/annotation/annotation_source.cpp | 3 +-- src/mbgl/annotation/shape_annotation_impl.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mbgl/annotation/annotation_source.cpp b/src/mbgl/annotation/annotation_source.cpp index cc82b34de..61fc4ca2e 100644 --- a/src/mbgl/annotation/annotation_source.cpp +++ b/src/mbgl/annotation/annotation_source.cpp @@ -15,8 +15,7 @@ AnnotationSource::Impl::Impl(Source& base_) } Range AnnotationSource::Impl::getZoomRange() { - // Same as default geojson-vt-cpp. - return { 0, 18 }; + return { 0, 22 }; } void AnnotationSource::Impl::load(FileSource&) { diff --git a/src/mbgl/annotation/shape_annotation_impl.cpp b/src/mbgl/annotation/shape_annotation_impl.cpp index 2236f179b..445ee7651 100644 --- a/src/mbgl/annotation/shape_annotation_impl.cpp +++ b/src/mbgl/annotation/shape_annotation_impl.cpp @@ -27,7 +27,7 @@ void ShapeAnnotationImpl::updateTileData(const CanonicalTileID& tileID, Annotati return Feature { std::move(geom) }; })); mapbox::geojsonvt::Options options; - options.maxZoom = util::clamp(maxZoom, 0, 18); + options.maxZoom = maxZoom; options.buffer = 255u; options.extent = util::EXTENT; options.tolerance = baseTolerance;