summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2020-02-10 22:29:11 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2020-02-11 10:40:30 +0200
commitdef38cf4db9e973f1d3e13f4ee2fba1afd694ea0 (patch)
tree40bce034965b966891c846da92ce4892dc7def92 /src/mbgl/annotation
parentfce4129435ddc5f14abdd1e2ed6a74bf84e1c496 (diff)
downloadqtlocation-mapboxgl-def38cf4db9e973f1d3e13f4ee2fba1afd694ea0.tar.gz
[core] Override default prefetch delta if source has it's own setting
Diffstat (limited to 'src/mbgl/annotation')
-rw-r--r--src/mbgl/annotation/render_annotation_source.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mbgl/annotation/render_annotation_source.cpp b/src/mbgl/annotation/render_annotation_source.cpp
index e3acfcb3c0..85665961d3 100644
--- a/src/mbgl/annotation/render_annotation_source.cpp
+++ b/src/mbgl/annotation/render_annotation_source.cpp
@@ -28,19 +28,19 @@ void RenderAnnotationSource::update(Immutable<style::Source::Impl> baseImpl_,
enabled = needsRendering;
- tilePyramid.update(layers,
- needsRendering,
- needsRelayout,
- parameters,
- SourceType::Annotations,
- util::tileSize,
- // Zoom level 16 is typically sufficient for annotations.
- // See https://github.com/mapbox/mapbox-gl-native/issues/10197
- { 0, 16 },
- optional<LatLngBounds> {},
- [&] (const OverscaledTileID& tileID) {
- return std::make_unique<AnnotationTile>(tileID, parameters);
- });
+ tilePyramid.update(
+ layers,
+ needsRendering,
+ needsRelayout,
+ parameters,
+ SourceType::Annotations,
+ util::tileSize,
+ // Zoom level 16 is typically sufficient for annotations.
+ // See https://github.com/mapbox/mapbox-gl-native/issues/10197
+ {0, 16},
+ optional<LatLngBounds>{},
+ [&](const OverscaledTileID& tileID) { return std::make_unique<AnnotationTile>(tileID, parameters); },
+ baseImpl->getPrefetchZoomDelta());
}
std::unordered_map<std::string, std::vector<Feature>>