Merge pull request #1970 from elemoine/geturls
Add getUrl methods to TileWMS and ImageWMS
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
@exportSymbol ol.source.ImageWMS
|
||||
@exportProperty ol.source.ImageWMS.prototype.getGetFeatureInfoUrl
|
||||
@exportProperty ol.source.ImageWMS.prototype.getParams
|
||||
@exportProperty ol.source.ImageWMS.prototype.getUrl
|
||||
@exportProperty ol.source.ImageWMS.prototype.setUrl
|
||||
@exportProperty ol.source.ImageWMS.prototype.updateParams
|
||||
|
||||
@@ -312,6 +312,16 @@ ol.source.ImageWMS.prototype.getRequestUrl_ =
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Return the URL used for this WMS source.
|
||||
* @return {string|undefined} URL.
|
||||
* @todo stability experimental
|
||||
*/
|
||||
ol.source.ImageWMS.prototype.getUrl = function() {
|
||||
return this.url_;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string|undefined} url URL.
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@exportSymbol ol.source.TileWMS
|
||||
@exportProperty ol.source.TileWMS.prototype.getGetFeatureInfoUrl
|
||||
@exportProperty ol.source.TileWMS.prototype.getParams
|
||||
@exportProperty ol.source.TileWMS.prototype.getUrls
|
||||
@exportProperty ol.source.TileWMS.prototype.updateParams
|
||||
|
||||
@@ -302,6 +302,16 @@ ol.source.TileWMS.prototype.getTilePixelSize =
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Return the URLs used for this WMS source.
|
||||
* @return {Array.<string>|undefined} URLs.
|
||||
* @todo stability experimental
|
||||
*/
|
||||
ol.source.TileWMS.prototype.getUrls = function() {
|
||||
return this.urls_;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user