summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMolly Lloyd <mollymerp@users.noreply.github.com>2018-08-02 11:43:34 -0700
committerGitHub <noreply@github.com>2018-08-02 11:43:34 -0700
commit1a840281b5dc9486400974bceddf99a92f6138af (patch)
treebb2fe13cced7cd14617bdbb6229bcbd17690805f
parentd25e1a1e7f313efd78aa76c76e4fed5f4d792d8a (diff)
downloadqtlocation-mapboxgl-1a840281b5dc9486400974bceddf99a92f6138af.tar.gz
[core] don't prefetch tiles for geojson sources (#12529)
-rw-r--r--src/mbgl/renderer/tile_pyramid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/renderer/tile_pyramid.cpp b/src/mbgl/renderer/tile_pyramid.cpp
index fd4356ca02..89c4aa0007 100644
--- a/src/mbgl/renderer/tile_pyramid.cpp
+++ b/src/mbgl/renderer/tile_pyramid.cpp
@@ -110,7 +110,7 @@ void TilePyramid::update(const std::vector<Immutable<style::Layer::Impl>>& layer
}
// Only attempt prefetching in continuous mode.
- if (parameters.mode == MapMode::Continuous) {
+ if (parameters.mode == MapMode::Continuous && type != style::SourceType::GeoJSON) {
// Request lower zoom level tiles (if configured to do so) in an attempt
// to show something on the screen faster at the cost of a little of bandwidth.
if (parameters.prefetchZoomDelta) {