Store source tiles on render tile instead of source

This commit is contained in:
Andreas Hocevar
2020-01-05 21:07:38 +01:00
parent 2875685b3c
commit 46d98201c3
3 changed files with 8 additions and 26 deletions

View File

@@ -316,10 +316,10 @@ describe('ol.renderer.canvas.VectorTileLayer', function() {
tileGrid: createXYZ()
});
source.sourceTileCache.set('0/0/0.mvt', sourceTile);
source.sourceTilesByTileKey_[sourceTile.getKey()] = [sourceTile];
executorGroup = {};
source.getTile = function() {
const tile = VectorTileSource.prototype.getTile.apply(source, arguments);
tile.sourceTiles = [sourceTile];
tile.executorGroups[getUid(layer)] = [executorGroup];
return tile;
};