When rendering interim tiles, reuse existing replay groups

This commit is contained in:
ahocevar
2018-11-13 13:11:23 +01:00
parent cda23e0d53
commit 30909ddbcd
4 changed files with 50 additions and 2 deletions

View File

@@ -103,11 +103,17 @@ class VectorImageTile extends Tile {
*/
this.sourceTileListenerKeys_ = [];
/**
* Use only source tiles that are loaded already
* @type {boolean}
*/
this.useLoadedOnly = zoom != tileCoord[0];
if (urlTileCoord) {
const extent = this.extent = tileGrid.getTileCoordExtent(urlTileCoord);
const resolution = tileGrid.getResolution(zoom);
const sourceZ = sourceTileGrid.getZForResolution(resolution);
const useLoadedOnly = zoom != tileCoord[0];
const useLoadedOnly = this.useLoadedOnly;
let loadCount = 0;
sourceTileGrid.forEachTileCoord(extent, sourceZ, function(sourceTileCoord) {
let sharedExtent = getIntersection(extent,