Add FIXME about avoiding tile cache clears

This commit is contained in:
Tom Payne
2013-09-11 16:48:31 +02:00
parent ae6ecb7103
commit 4542c689e8

View File

@@ -112,6 +112,9 @@ ol.source.TileImage.prototype.getTile = function(z, x, y, projection) {
* @param {ol.TileUrlFunctionType} tileUrlFunction Tile URL function.
*/
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.tileUrlFunction = tileUrlFunction;
this.dispatchChangeEvent();