Add FIXME about avoiding tile cache clears
This commit is contained in:
@@ -112,6 +112,9 @@ ol.source.TileImage.prototype.getTile = function(z, x, y, projection) {
|
|||||||
* @param {ol.TileUrlFunctionType} tileUrlFunction Tile URL function.
|
* @param {ol.TileUrlFunctionType} tileUrlFunction Tile URL function.
|
||||||
*/
|
*/
|
||||||
ol.source.TileImage.prototype.setTileUrlFunction = function(tileUrlFunction) {
|
ol.source.TileImage.prototype.setTileUrlFunction = function(tileUrlFunction) {
|
||||||
|
// FIXME It should be possible to be more intelligent and avoid clearing the
|
||||||
|
// FIXME cache. The tile URL function would need to be incorporated into the
|
||||||
|
// FIXME cache key somehow.
|
||||||
this.tileCache_.clear();
|
this.tileCache_.clear();
|
||||||
this.tileUrlFunction = tileUrlFunction;
|
this.tileUrlFunction = tileUrlFunction;
|
||||||
this.dispatchChangeEvent();
|
this.dispatchChangeEvent();
|
||||||
|
|||||||
Reference in New Issue
Block a user