Move Options to ol/format/WMSGetFeatureInfo

This commit is contained in:
Tim Schaub
2018-03-11 22:31:46 -06:00
parent 7d52a9b8c4
commit 03a7a6cb08
3 changed files with 9 additions and 25 deletions

View File

@@ -5,23 +5,6 @@
let olx;
/**
* @typedef {{
* layers: (Array.<string>|undefined)
* }}
*/
olx.format.WMSGetFeatureInfoOptions;
/**
* If set, only features of the given layers will be returned by the format
* when read.
* @type {Array.<string>|undefined}
* @api
*/
olx.format.WMSGetFeatureInfoOptions.prototype.layers;
/**
* @typedef {{duration: (number|undefined),
* delta: (number|undefined)}}

View File

@@ -1,11 +1,4 @@
/**
* @typedef {Object} format_WMSGetFeatureInfoOptions
* @property {Array.<string>|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`.

View File

@@ -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.<string>|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) {