diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-01-16 15:07:18 -0800 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-01-26 17:48:44 +0200 |
commit | 68440ee6c27a8c1cdd3e179794862e59d3eb5344 (patch) | |
tree | 112301d245a38298f3e4bd51111216102d2bccea | |
parent | 44b960fb925a5a2bf290dd4dab442e58d000dde2 (diff) | |
download | qtlocation-mapboxgl-68440ee6c27a8c1cdd3e179794862e59d3eb5344.tar.gz |
[core] Allow tile cache size to change with viewport size
-rw-r--r-- | src/mbgl/style/source_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/source_impl.cpp b/src/mbgl/style/source_impl.cpp index 452df80f61..003df4f6b1 100644 --- a/src/mbgl/style/source_impl.cpp +++ b/src/mbgl/style/source_impl.cpp @@ -139,7 +139,7 @@ void Source::Impl::updateTiles(const UpdateParameters& parameters) { algorithm::updateRenderables(getTileFn, createTileFn, retainTileFn, renderTileFn, idealTiles, zoomRange, tileZoom); - if (type != SourceType::Annotations && cache.getSize() == 0) { + if (type != SourceType::Annotations) { size_t conservativeCacheSize = std::max((float)parameters.transformState.getSize().width / tileSize, 1.0f) * std::max((float)parameters.transformState.getSize().height / tileSize, 1.0f) * |