diff --git a/externs/olx.js b/externs/olx.js index ca44065d92..b18745825c 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -5,23 +5,6 @@ let olx; -/** - * @typedef {{ - * layers: (Array.|undefined) - * }} - */ -olx.format.WMSGetFeatureInfoOptions; - - -/** - * If set, only features of the given layers will be returned by the format - * when read. - * @type {Array.|undefined} - * @api - */ -olx.format.WMSGetFeatureInfoOptions.prototype.layers; - - /** * @typedef {{duration: (number|undefined), * delta: (number|undefined)}} diff --git a/externs/xol.js b/externs/xol.js index 6a9d340840..b3e1c6091c 100644 --- a/externs/xol.js +++ b/externs/xol.js @@ -1,11 +1,4 @@ -/** - * @typedef {Object} format_WMSGetFeatureInfoOptions - * @property {Array.|undefined} layers If set, only features of the given layers will be returned by the format - * when read. - */ - - /** * @typedef {Object} interaction_DoubleClickZoomOptions * @property {number|undefined} duration Animation duration in milliseconds. Default is `250`. diff --git a/src/ol/format/WMSGetFeatureInfo.js b/src/ol/format/WMSGetFeatureInfo.js index f4d73bb584..cc7e393cc1 100644 --- a/src/ol/format/WMSGetFeatureInfo.js +++ b/src/ol/format/WMSGetFeatureInfo.js @@ -8,6 +8,14 @@ import XMLFeature from '../format/XMLFeature.js'; import {assign} from '../obj.js'; import {makeArrayPusher, makeStructureNS, pushParseAndPop} from '../xml.js'; + +/** + * @typedef {Object} Options + * @property {Array.|undefined} layers If set, only features of the + * given layers will be returned by the format when read. + */ + + /** * @classdesc * Format for reading WMSGetFeatureInfo format. It uses @@ -15,7 +23,7 @@ import {makeArrayPusher, makeStructureNS, pushParseAndPop} from '../xml.js'; * * @constructor * @extends {ol.format.XMLFeature} - * @param {olx.format.WMSGetFeatureInfoOptions=} opt_options Options. + * @param {module:ol/format/WMSGetFeatureInfo~Options=} opt_options Options. * @api */ const WMSGetFeatureInfo = function(opt_options) {