Add ol.source.TileImage#setTileUrlFunction
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user