timeimage.js - Added newTile.refreshInterimChain() to clean up interimTile references and preventing memory leak

This commit is contained in:
Chris Amaral
2017-07-07 13:57:50 -04:00
parent 4a0f97ac6a
commit ff242ef28c

View File

@@ -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);