Merge pull request #1308 from ahocevar/wms-getfeatureinfo-options

Add missing WMSGetFeatureInfo exports
This commit is contained in:
ahocevar
2013-11-22 08:22:14 -08:00
5 changed files with 17 additions and 17 deletions

View File

@@ -630,8 +630,8 @@
* @property {null|string|undefined} crossOrigin crossOrigin setting for image
* requests.
* @property {ol.Extent|undefined} extent Extent.
* @property {ol.source.WMSGetFeatureInfoOptions|undefined}
* getFeatureInfoOptions Options for GetFeatureInfo.
* @property {ol.source.WMSGetFeatureInfoOptions|undefined} getFeatureInfoOptions
* Options for GetFeatureInfo.
* @property {Object.<string,*>} params WMS request parameters. At least a
* `LAYERS` param is required. `STYLES` is `` by default. `VERSION` is
* `1.3.0` by default. `WIDTH`, `HEIGHT`, `BBOX` and `CRS` (`SRS` for WMS
@@ -692,8 +692,8 @@
* @property {null|string|undefined} crossOrigin crossOrigin setting for image
* requests.
* @property {ol.Extent|undefined} extent Extent.
* @property {ol.source.WMSGetFeatureInfoOptions|undefined}
* getFeatureInfoOptions Options for GetFeatureInfo.
* @property {ol.source.WMSGetFeatureInfoOptions|undefined} getFeatureInfoOptions
* Options for GetFeatureInfo.
* @property {string|undefined} logo Logo.
* @property {ol.tilegrid.TileGrid|undefined} tileGrid Tile grid.
* @property {number|undefined} maxZoom Maximum zoom.
@@ -722,17 +722,6 @@
* @todo stability experimental
*/
/**
* @typedef {Object} ol.source.WMSGetFeatureInfoOptions
* @property {ol.source.WMSGetFeatureInfoMethod} method Method for requesting
* GetFeatureInfo. Default is `ol.source.WMSGetFeatureInfoMethod.IFRAME`.
* @property {Object} params Params for the GetFeatureInfo request. Default is
* `{'INFO_FORMAT': 'text/html'}`.
* @todo stability experimental
*/
/**
* @typedef {Object} ol.source.WMTSOptions
* @property {Array.<ol.Attribution>|undefined} attributions Attributions.

View File

@@ -45,7 +45,8 @@ ol.source.ImageWMS = function(options) {
* @type {ol.source.WMSGetFeatureInfoOptions}
*/
this.getFeatureInfoOptions_ = goog.isDef(options.getFeatureInfoOptions) ?
options.getFeatureInfoOptions : {};
options.getFeatureInfoOptions :
/** @type {ol.source.WMSGetFeatureInfoOptions} */ ({});
/**
* @private

View File

@@ -110,7 +110,8 @@ ol.source.TileWMS = function(options) {
* @type {ol.source.WMSGetFeatureInfoOptions}
*/
this.getFeatureInfoOptions_ = goog.isDef(options.getFeatureInfoOptions) ?
options.getFeatureInfoOptions : {};
options.getFeatureInfoOptions :
/** @type {ol.source.WMSGetFeatureInfoOptions} */ ({});
};
goog.inherits(ol.source.TileWMS, ol.source.TileImage);

View File

@@ -1 +1,3 @@
@exportSymbol ol.source.WMSGetFeatureInfoMethod
@exportProperty ol.source.WMSGetFeatureInfoMethod.IFRAME
@exportProperty ol.source.WMSGetFeatureInfoMethod.XHR_GET

View File

@@ -6,6 +6,13 @@ goog.require('goog.object');
goog.require('goog.uri.utils');
/**
* @typedef {{method: (ol.source.WMSGetFeatureInfoMethod|undefined),
* params: (Object.<string,string>|undefined)}}
*/
ol.source.WMSGetFeatureInfoOptions;
/**
* Method to use to get WMS feature info.
* @enum {string}