Treat WMSGetFeatureInfoOptions as other options types

This commit is contained in:
Éric Lemoine
2013-12-12 15:21:49 +01:00
parent 7732c19874
commit f95e0eb785
2 changed files with 8 additions and 9 deletions
+6
View File
@@ -775,6 +775,12 @@
* @todo stability experimental * @todo stability experimental
*/ */
/**
* @typedef {Object} olx.source.WMSGetFeatureInfoOptions
* @property {ol.source.WMSGetFeatureInfoMethod|undefined} method Method.
* @property {Object.<string,string>|undefined} params Params.
*/
/** /**
* @typedef {Object} olx.source.WMTSOptions * @typedef {Object} olx.source.WMTSOptions
* @property {Array.<ol.Attribution>|undefined} attributions Attributions. * @property {Array.<ol.Attribution>|undefined} attributions Attributions.
+2 -9
View File
@@ -7,13 +7,6 @@ goog.require('goog.object');
goog.require('goog.uri.utils'); 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. * Method to use to get WMS feature info.
* @enum {string} * @enum {string}
@@ -74,8 +67,8 @@ ol.source.wms.getUrl =
/** /**
* @param {string} url URL as provided by the url function. * @param {string} url URL as provided by the url function.
* @param {ol.Pixel} pixel Pixel. * @param {ol.Pixel} pixel Pixel.
* @param {olx.source.WMSGetFeatureInfoOptions} options Options as defined in the * @param {olx.source.WMSGetFeatureInfoOptions} options Options as defined in
* source. * the source.
* @param {function(string)} success Callback function for successful queries. * @param {function(string)} success Callback function for successful queries.
* @param {function()=} opt_error Optional callback function for unsuccessful * @param {function()=} opt_error Optional callback function for unsuccessful
* queries. * queries.