summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-10-13 16:41:23 -0700
committerKonstantin Käfer <mail@kkaefer.com>2017-10-19 09:22:03 -0700
commit60d635613df2d63f59314901c80a63f805af7391 (patch)
tree64ae63860e5bc486febac3a8c5c5d6a268216dc4
parent8877fb527766194e83fc5642674fb71e68df2ec8 (diff)
downloadqtlocation-mapboxgl-upstream/android-v5.1.4.tar.gz
[core] limit annotation tile source to z16upstream/android-v5.1.4
-rw-r--r--src/mbgl/annotation/render_annotation_source.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/annotation/render_annotation_source.cpp b/src/mbgl/annotation/render_annotation_source.cpp
index 34fb576727..ba80be0da0 100644
--- a/src/mbgl/annotation/render_annotation_source.cpp
+++ b/src/mbgl/annotation/render_annotation_source.cpp
@@ -38,7 +38,9 @@ void RenderAnnotationSource::update(Immutable<style::Source::Impl> baseImpl_,
parameters,
SourceType::Annotations,
util::tileSize,
- { 0, util::DEFAULT_MAX_ZOOM },
+ // Zoom level 16 is typically sufficient for annotations.
+ // See https://github.com/mapbox/mapbox-gl-native/issues/10197
+ { 0, 16 },
[&] (const OverscaledTileID& tileID) {
return std::make_unique<AnnotationTile>(tileID, parameters);
});