Merge pull request #13997 from tschaub/stop-caching

Avoid append only cache in WebGL tile layers
This commit is contained in:
Tim Schaub
2022-08-17 04:25:20 -06:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

View File

@@ -674,6 +674,7 @@ class WebGLTileLayerRenderer extends WebGLLayerRenderer {
* @param {import("../../Map.js").FrameState} frameState Frame state.
*/
const postRenderFunction = function (map, frameState) {
tileSource.updateCacheSize(0.1, frameState.viewState.projection);
tileSource.expireCache(frameState.viewState.projection, empty);
};