Add ol.source.TileImage#setTileUrlFunction

This commit is contained in:
Tom Payne
2013-09-11 15:57:09 +02:00
parent 184c2e52d5
commit 4ef6254c13

View File

@@ -108,6 +108,16 @@ ol.source.TileImage.prototype.getTile = function(z, x, y, projection) {
};
/**
* @param {ol.TileUrlFunctionType} tileUrlFunction Tile URL function.
*/
ol.source.TileImage.prototype.setTileUrlFunction = function(tileUrlFunction) {
this.tileCache_.clear();
this.tileUrlFunction = tileUrlFunction;
this.dispatchChangeEvent();
};
/**
* @inheritDoc
*/