summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation
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 16:50:17 -0700
commit61ea2f43e4ea0233283f545982d5179b8397cde6 (patch)
tree75090de24d44e1f2fe815c3105019a1519189422 /src/mbgl/annotation
parent817e5c109f5e48e0ce05b05058498cfa6be8e2da (diff)
downloadqtlocation-mapboxgl-61ea2f43e4ea0233283f545982d5179b8397cde6.tar.gz
[core] limit annotation tile source to z16
Diffstat (limited to 'src/mbgl/annotation')
-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);
});