Move Options to ol/format/WKT

This commit is contained in:
Tim Schaub
2018-03-11 22:29:36 -06:00
parent 55e257d6fb
commit 7d52a9b8c4
3 changed files with 8 additions and 23 deletions

View File

@@ -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)

View File

@@ -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

View File

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