Avoid infinite source tile cache size

This commit is contained in:
Andreas Hocevar committed 2021-06-15 20:30:43 +02:00
1 parent 2361150814
commit cd719ffb34
2 files changed
+15

No files matched your search

+3
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;
}
}