Respect cacheSize for reprojected caches

This commit is contained in:
Andreas Hocevar
2017-03-22 15:50:58 +01:00
parent 57e67e62bb
commit 07d4492ece
4 changed files with 22 additions and 5 deletions

View File

@@ -194,7 +194,7 @@ ol.source.TileImage.prototype.getTileCacheForProjection = function(projection) {
} else {
var projKey = ol.getUid(projection).toString();
if (!(projKey in this.tileCacheForProjection)) {
this.tileCacheForProjection[projKey] = new ol.TileCache();
this.tileCacheForProjection[projKey] = new ol.TileCache(this.tileCache.highWaterMark);
}
return this.tileCacheForProjection[projKey];
}