Add getTileLoadFunction and setTileLoadFunction in ol.source.TileImage
This commit is contained in:
@@ -119,17 +119,38 @@ ol.source.TileImage.prototype.getTile =
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {ol.TileLoadFunctionType} TileLoadFunction
|
||||||
|
* @todo api
|
||||||
|
*/
|
||||||
|
ol.source.TileImage.prototype.getTileLoadFunction = function() {
|
||||||
|
return this.tileLoadFunction;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {ol.TileUrlFunctionType} TileUrlFunction
|
* @return {ol.TileUrlFunctionType} TileUrlFunction
|
||||||
* @todo stability experimental
|
* @todo api
|
||||||
*/
|
*/
|
||||||
ol.source.TileImage.prototype.getTileUrlFunction = function() {
|
ol.source.TileImage.prototype.getTileUrlFunction = function() {
|
||||||
return this.tileUrlFunction;
|
return this.tileUrlFunction;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {ol.TileLoadFunctionType} tileLoadFunction Tile load function.
|
||||||
|
* @todo api
|
||||||
|
*/
|
||||||
|
ol.source.TileImage.prototype.setTileLoadFunction = function(tileLoadFunction) {
|
||||||
|
this.tileCache.clear();
|
||||||
|
this.tileLoadFunction = tileLoadFunction;
|
||||||
|
this.dispatchChangeEvent();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.TileUrlFunctionType} tileUrlFunction Tile URL function.
|
* @param {ol.TileUrlFunctionType} tileUrlFunction Tile URL function.
|
||||||
|
* @todo api
|
||||||
*/
|
*/
|
||||||
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 It should be possible to be more intelligent and avoid clearing the
|
||||||
|
|||||||
Reference in New Issue
Block a user