Maintain rendering order in the LRU cache

This commit is contained in:
Tim Schaub
2017-10-07 10:28:07 -06:00
parent 9fb7778156
commit c692b98fa9
2 changed files with 65 additions and 3 deletions

View File

@@ -256,7 +256,7 @@ ol.renderer.Layer.prototype.manageTilePyramid = function(
var tileQueue = frameState.tileQueue;
var minZoom = tileGrid.getMinZoom();
var tile, tileRange, tileResolution, x, y, z;
for (z = currentZ; z >= minZoom; --z) {
for (z = minZoom; z <= currentZ; ++z) {
tileRange = tileGrid.getTileRangeForExtentAndZ(extent, z, tileRange);
tileResolution = tileGrid.getResolution(z);
for (x = tileRange.minX; x <= tileRange.maxX; ++x) {