Add ol.renderer.Map#scheduleExpireIconCache
This commit is contained in:
@@ -8,6 +8,7 @@ goog.require('goog.vec.Mat4');
|
||||
goog.require('ol.FrameState');
|
||||
goog.require('ol.layer.Layer');
|
||||
goog.require('ol.renderer.Layer');
|
||||
goog.require('ol.style.IconImageCache');
|
||||
goog.require('ol.vec.Mat4');
|
||||
|
||||
|
||||
@@ -195,6 +196,22 @@ ol.renderer.Map.prototype.removeUnusedLayerRenderers_ =
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.FrameState} frameState Frame state.
|
||||
* @protected
|
||||
*/
|
||||
ol.renderer.Map.prototype.scheduleExpireIconCache = function(frameState) {
|
||||
frameState.postRenderFunctions.push(
|
||||
/**
|
||||
* @param {ol.Map} map Map.
|
||||
* @param {ol.FrameState} frameState Frame state.
|
||||
*/
|
||||
function(map, frameState) {
|
||||
ol.style.IconImageCache.getInstance().expire();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!ol.FrameState} frameState Frame state.
|
||||
* @protected
|
||||
|
||||
Reference in New Issue
Block a user