Move Options to ol/format/WKT
This commit is contained in:
@@ -5,21 +5,6 @@
|
||||
let olx;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{splitCollection: (boolean|undefined)}}
|
||||
*/
|
||||
olx.format.WKTOptions;
|
||||
|
||||
|
||||
/**
|
||||
* Whether to split GeometryCollections into
|
||||
* multiple features on reading. Default is `false`.
|
||||
* @type {boolean|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WKTOptions.prototype.splitCollection;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* layers: (Array.<string>|undefined)
|
||||
|
||||
@@ -1,11 +1,4 @@
|
||||
|
||||
/**
|
||||
* @typedef {Object} format_WKTOptions
|
||||
* @property {boolean|undefined} splitCollection Whether to split GeometryCollections into
|
||||
* multiple features on reading. Default is `false`.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {Object} format_WMSGetFeatureInfoOptions
|
||||
* @property {Array.<string>|undefined} layers If set, only features of the given layers will be returned by the format
|
||||
|
||||
@@ -17,6 +17,13 @@ import Polygon from '../geom/Polygon.js';
|
||||
import SimpleGeometry from '../geom/SimpleGeometry.js';
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {Object} Options
|
||||
* @property {boolean|undefined} splitCollection Whether to split GeometryCollections into
|
||||
* multiple features on reading. Default is `false`.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
@@ -526,7 +533,7 @@ Parser.prototype.formatErrorMessage_ = function() {
|
||||
*
|
||||
* @constructor
|
||||
* @extends {ol.format.TextFeature}
|
||||
* @param {olx.format.WKTOptions=} opt_options Options.
|
||||
* @param {module:ol/format/WKT~Options=} opt_options Options.
|
||||
* @api
|
||||
*/
|
||||
const WKT = function(opt_options) {
|
||||
|
||||
Reference in New Issue
Block a user