From 59cf0c31b6bf2f2e41f82a5f8ce23bc75869366f Mon Sep 17 00:00:00 2001 From: ahocevar Date: Fri, 25 Jan 2019 01:30:16 +0100 Subject: [PATCH] Allow bigger cache now that we do less clipping --- src/ol/source/Tile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/source/Tile.js b/src/ol/source/Tile.js index 3eda3a99c0..9ea34b0ea7 100644 --- a/src/ol/source/Tile.js +++ b/src/ol/source/Tile.js @@ -78,7 +78,7 @@ class TileSource extends Source { const canUseScreen = 'screen ' in self; const width = canUseScreen ? (screen.availWidth || screen.width) : 1920; const height = canUseScreen ? (screen.availHeight || screen.height) : 1080; - cacheSize = 2 * Math.ceil(width / tileSize[0]) * Math.ceil(height / tileSize[1]); + cacheSize = 4 * Math.ceil(width / tileSize[0]) * Math.ceil(height / tileSize[1]); } /**