Move Options to ol/format/WFS
This commit is contained in:
@@ -5,48 +5,6 @@
|
|||||||
let olx;
|
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,
|
* @typedef {{featureNS: string,
|
||||||
* featurePrefix: 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
|
* @typedef {Object} format_WFSWriteGetFeatureOptions
|
||||||
* @property {string} featureNS The namespace URI used for features.
|
* @property {string} featureNS The namespace URI used for features.
|
||||||
|
|||||||
+14
-2
@@ -17,6 +17,19 @@ import {createElementNS, isDocument, isNode, makeArrayPusher, makeChildAppender,
|
|||||||
pushParseAndPop, pushSerializeAndPop, setAttributeNS} from '../xml.js';
|
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}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
@@ -71,8 +84,7 @@ const DEFAULT_VERSION = '1.1.0';
|
|||||||
* Also see {@link ol.format.GMLBase} which is used by this format.
|
* Also see {@link ol.format.GMLBase} which is used by this format.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {olx.format.WFSOptions=} opt_options
|
* @param {module:ol/format/WFS~Options=} opt_options Optional configuration object.
|
||||||
* Optional configuration object.
|
|
||||||
* @extends {ol.format.XMLFeature}
|
* @extends {ol.format.XMLFeature}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user