Avoid infinite source tile cache size

This commit is contained in:
Andreas Hocevar
2021-06-15 20:30:43 +02:00
parent 2361150814
commit cd719ffb34
2 changed files with 15 additions and 0 deletions

View File

@@ -471,6 +471,9 @@ class VectorTile extends UrlTile {
*/
updateCacheSize(tileCount, projection) {
super.updateCacheSize(tileCount * 2, projection);
this.sourceTileCache.highWaterMark = this.getTileCacheForProjection(
projection
).highWaterMark;
}
}