Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

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

Merged
merged 1 commit into from
Aug 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/mbgl/renderer/tile_pyramid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down