Allow bigger cache now that we do less clipping
This commit is contained in:
@@ -78,7 +78,7 @@ class TileSource extends Source {
|
|||||||
const canUseScreen = 'screen ' in self;
|
const canUseScreen = 'screen ' in self;
|
||||||
const width = canUseScreen ? (screen.availWidth || screen.width) : 1920;
|
const width = canUseScreen ? (screen.availWidth || screen.width) : 1920;
|
||||||
const height = canUseScreen ? (screen.availHeight || screen.height) : 1080;
|
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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user