diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index 898a48adb3..59a9c6701b 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -775,6 +775,12 @@ * @todo stability experimental */ +/** + * @typedef {Object} olx.source.WMSGetFeatureInfoOptions + * @property {ol.source.WMSGetFeatureInfoMethod|undefined} method Method. + * @property {Object.|undefined} params Params. + */ + /** * @typedef {Object} olx.source.WMTSOptions * @property {Array.|undefined} attributions Attributions. diff --git a/src/ol/source/wmssource.js b/src/ol/source/wmssource.js index 5799ebaf69..5f9f3eae08 100644 --- a/src/ol/source/wmssource.js +++ b/src/ol/source/wmssource.js @@ -7,13 +7,6 @@ goog.require('goog.object'); goog.require('goog.uri.utils'); -/** - * @typedef {{method: (ol.source.WMSGetFeatureInfoMethod|undefined), - * params: (Object.|undefined)}} - */ -ol.source.WMSGetFeatureInfoOptions; - - /** * Method to use to get WMS feature info. * @enum {string} @@ -74,8 +67,8 @@ ol.source.wms.getUrl = /** * @param {string} url URL as provided by the url function. * @param {ol.Pixel} pixel Pixel. - * @param {olx.source.WMSGetFeatureInfoOptions} options Options as defined in the - * source. + * @param {olx.source.WMSGetFeatureInfoOptions} options Options as defined in + * the source. * @param {function(string)} success Callback function for successful queries. * @param {function()=} opt_error Optional callback function for unsuccessful * queries.