Move Options to ol/format/WMSGetFeatureInfo
This commit is contained in:
@@ -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)}}
|
||||
|
||||
@@ -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`.
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user