timeimage.js - Added newTile.refreshInterimChain() to clean up interimTile references and preventing memory leak
This commit is contained in:
@@ -269,6 +269,7 @@ ol.source.TileImage.prototype.getTile = function(z, x, y, pixelRatio, projection
|
||||
|
||||
if (tile) {
|
||||
newTile.interimTile = tile;
|
||||
newTile.refreshInterimChain();
|
||||
cache.replace(tileCoordKey, newTile);
|
||||
} else {
|
||||
cache.set(tileCoordKey, newTile);
|
||||
|
||||
Reference in New Issue
Block a user