Merge pull request #1970 from elemoine/geturls

Add getUrl methods to TileWMS and ImageWMS
This commit is contained in:
Éric Lemoine
2014-04-14 20:47:35 +02:00
4 changed files with 22 additions and 0 deletions

View File

@@ -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

View File

@@ -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.
*/

View File

@@ -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

View File

@@ -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
*/