[core] don't prefetch tiles for geojson sources (#12529)

This commit is contained in:
Molly Lloyd
2018-08-02 11:43:34 -07:00
committed by GitHub
parent d25e1a1e7f
commit 1a840281b5

View File

@@ -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) {