Add ol.source.ImageWMS#setUrl

This commit is contained in:
Tom Payne
2014-01-08 22:04:25 +01:00
parent 1bf678bef2
commit bcf38b1b21
2 changed files with 13 additions and 0 deletions

View File

@@ -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.
* @param {Object} params Params.