Add setters and getters for imageLoadFunction
This commit is contained in:
@@ -160,6 +160,15 @@ ol.source.ImageMapGuide.prototype.getImage =
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {ol.ImageLoadFunctionType} The image load function.
|
||||||
|
* @api
|
||||||
|
*/
|
||||||
|
ol.source.ImageMapGuide.prototype.getImageLoadFunction = function() {
|
||||||
|
return this.imageLoadFunction_;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.Extent} extent The map extents.
|
* @param {ol.Extent} extent The map extents.
|
||||||
* @param {ol.Size} size the viewport size.
|
* @param {ol.Size} size the viewport size.
|
||||||
@@ -221,3 +230,15 @@ ol.source.ImageMapGuide.prototype.getUrl =
|
|||||||
goog.object.extend(baseParams, params);
|
goog.object.extend(baseParams, params);
|
||||||
return goog.uri.utils.appendParamsFromMap(baseUrl, baseParams);
|
return goog.uri.utils.appendParamsFromMap(baseUrl, baseParams);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {ol.ImageLoadFunctionType} imageLoadFunction Image load function.
|
||||||
|
* @api
|
||||||
|
*/
|
||||||
|
ol.source.ImageMapGuide.prototype.setImageLoadFunction = function(
|
||||||
|
imageLoadFunction) {
|
||||||
|
this.image_ = null;
|
||||||
|
this.imageLoadFunction_ = imageLoadFunction;
|
||||||
|
this.changed();
|
||||||
|
};
|
||||||
|
|||||||
@@ -252,6 +252,15 @@ ol.source.ImageWMS.prototype.getImage =
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {ol.ImageLoadFunctionType} The image load function.
|
||||||
|
* @api
|
||||||
|
*/
|
||||||
|
ol.source.ImageWMS.prototype.getImageLoadFunction = function() {
|
||||||
|
return this.imageLoadFunction_;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.Extent} extent Extent.
|
* @param {ol.Extent} extent Extent.
|
||||||
* @param {ol.Size} size Size.
|
* @param {ol.Size} size Size.
|
||||||
@@ -319,6 +328,18 @@ ol.source.ImageWMS.prototype.getUrl = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {ol.ImageLoadFunctionType} imageLoadFunction Image load function.
|
||||||
|
* @api
|
||||||
|
*/
|
||||||
|
ol.source.ImageWMS.prototype.setImageLoadFunction = function(
|
||||||
|
imageLoadFunction) {
|
||||||
|
this.image_ = null;
|
||||||
|
this.imageLoadFunction_ = imageLoadFunction;
|
||||||
|
this.changed();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string|undefined} url URL.
|
* @param {string|undefined} url URL.
|
||||||
* @api stable
|
* @api stable
|
||||||
|
|||||||
Reference in New Issue
Block a user