expire cache for tileGrid projection

This commit is contained in:
mike-000
2021-11-08 12:11:43 +00:00
parent f4134b873b
commit 4a80ebe1fc

View File

@@ -503,7 +503,7 @@ class WebGLTileLayerRenderer extends WebGLLayerRenderer {
* @param {import("../../PluggableMap.js").FrameState} frameState Frame state. * @param {import("../../PluggableMap.js").FrameState} frameState Frame state.
*/ */
const postRenderFunction = function (map, frameState) { const postRenderFunction = function (map, frameState) {
tileSource.expireCache(tileSource.getProjection(), empty); tileSource.expireCache(frameState.viewState.projection, empty);
}; };
frameState.postRenderFunctions.push(postRenderFunction); frameState.postRenderFunctions.push(postRenderFunction);