Move Options to ol/format/WFS
This commit is contained in:
@@ -5,48 +5,6 @@
|
||||
let olx;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{featureNS: (Object.<string, string>|string|undefined),
|
||||
* featureType: (Array.<string>|string|undefined),
|
||||
* gmlFormat: (ol.format.GMLBase|undefined),
|
||||
* schemaLocation: (string|undefined)}}
|
||||
*/
|
||||
olx.format.WFSOptions;
|
||||
|
||||
|
||||
/**
|
||||
* The namespace URI used for features.
|
||||
* @type {Object.<string, string>|string|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSOptions.prototype.featureNS;
|
||||
|
||||
|
||||
/**
|
||||
* The feature type to parse. Only used for read operations.
|
||||
* @type {Array.<string>|string|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSOptions.prototype.featureType;
|
||||
|
||||
|
||||
/**
|
||||
* The GML format to use to parse the response. Default is `ol.format.GML3`.
|
||||
* @type {ol.format.GMLBase|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSOptions.prototype.gmlFormat;
|
||||
|
||||
|
||||
/**
|
||||
* Optional schemaLocation to use for serialization, this will override the
|
||||
* default.
|
||||
* @type {string|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSOptions.prototype.schemaLocation;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{featureNS: string,
|
||||
* featurePrefix: string,
|
||||
|
||||
@@ -1,14 +1,4 @@
|
||||
|
||||
/**
|
||||
* @typedef {Object} format_WFSOptions
|
||||
* @property {Object.<string, string>|string|undefined} featureNS The namespace URI used for features.
|
||||
* @property {Array.<string>|string|undefined} featureType The feature type to parse. Only used for read operations.
|
||||
* @property {ol.format.GMLBase|undefined} gmlFormat The GML format to use to parse the response. Default is `ol.format.GML3`.
|
||||
* @property {string|undefined} schemaLocation Optional schemaLocation to use for serialization, this will override the
|
||||
* default.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {Object} format_WFSWriteGetFeatureOptions
|
||||
* @property {string} featureNS The namespace URI used for features.
|
||||
|
||||
@@ -17,6 +17,19 @@ import {createElementNS, isDocument, isNode, makeArrayPusher, makeChildAppender,
|
||||
pushParseAndPop, pushSerializeAndPop, setAttributeNS} from '../xml.js';
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {Object} Options
|
||||
* @property {Object.<string, string>|string|undefined} featureNS The namespace
|
||||
* URI used for features.
|
||||
* @property {Array.<string>|string|undefined} featureType The feature type to parse.
|
||||
* Only used for read operations.
|
||||
* @property {ol.format.GMLBase|undefined} gmlFormat The GML format to use to parse
|
||||
* the response. Default is `ol.format.GML3`.
|
||||
* @property {string|undefined} schemaLocation Optional schemaLocation to use for
|
||||
* serialization, this will override the default.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
@@ -71,8 +84,7 @@ const DEFAULT_VERSION = '1.1.0';
|
||||
* Also see {@link ol.format.GMLBase} which is used by this format.
|
||||
*
|
||||
* @constructor
|
||||
* @param {olx.format.WFSOptions=} opt_options
|
||||
* Optional configuration object.
|
||||
* @param {module:ol/format/WFS~Options=} opt_options Optional configuration object.
|
||||
* @extends {ol.format.XMLFeature}
|
||||
* @api
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user