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

Commit

Permalink
[core] don't prefetch tiles for geojson sources (#12529)
Browse files Browse the repository at this point in the history
  • Loading branch information
mollymerp committed Aug 2, 2018
1 parent d25e1a1 commit 1a84028
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 1a84028

Please sign in to comment.