Add ol.source.ImageWMS#setUrl
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
@exportSymbol ol.source.ImageWMS
|
@exportSymbol ol.source.ImageWMS
|
||||||
@exportProperty ol.source.ImageWMS.prototype.getParams
|
@exportProperty ol.source.ImageWMS.prototype.getParams
|
||||||
|
@exportProperty ol.source.ImageWMS.prototype.setUrl
|
||||||
@exportProperty ol.source.ImageWMS.prototype.updateParams
|
@exportProperty ol.source.ImageWMS.prototype.updateParams
|
||||||
|
|||||||
@@ -185,6 +185,18 @@ ol.source.ImageWMS.prototype.getImage =
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string|undefined} url URL.
|
||||||
|
*/
|
||||||
|
ol.source.ImageWMS.prototype.setUrl = function(url) {
|
||||||
|
if (url != this.url_) {
|
||||||
|
this.url_ = url;
|
||||||
|
this.image_ = null;
|
||||||
|
this.dispatchChangeEvent();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update the user-provided params.
|
* Update the user-provided params.
|
||||||
* @param {Object} params Params.
|
* @param {Object} params Params.
|
||||||
|
|||||||
Reference in New Issue
Block a user