Only schedule the icon cache expire when it's needed
This commit is contained in:
@@ -280,7 +280,9 @@ class MapRenderer extends Disposable {
|
||||
* @protected
|
||||
*/
|
||||
scheduleExpireIconCache(frameState) {
|
||||
frameState.postRenderFunctions.push(/** @type {import("../PluggableMap.js").PostRenderFunction} */ (expireIconCache));
|
||||
if (iconImageCache.canExpireCache()) {
|
||||
frameState.postRenderFunctions.push(expireIconCache);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user