diff --git a/externs/olx.js b/externs/olx.js index 73a5109345..349b1f8552 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -5,95 +5,6 @@ let olx; -/** - * @typedef {{featureNS: string, - * featurePrefix: string, - * featureType: string, - * srsName: (string|undefined), - * handle: (string|undefined), - * hasZ: (boolean|undefined), - * nativeElements: Array., - * gmlOptions: (module:ol/format/GMLBase~Options|undefined), - * version: (string|undefined)}} - */ -olx.format.WFSWriteTransactionOptions; - - -/** - * The namespace URI used for features. - * @type {string} - * @api - */ -olx.format.WFSWriteTransactionOptions.prototype.featureNS; - - -/** - * The prefix for the feature namespace. - * @type {string} - * @api - */ -olx.format.WFSWriteTransactionOptions.prototype.featurePrefix; - - -/** - * The feature type name. - * @type {string} - * @api - */ -olx.format.WFSWriteTransactionOptions.prototype.featureType; - - -/** - * SRS name. No srsName attribute will be set on geometries when this is not - * provided. - * @type {string|undefined} - * @api - */ -olx.format.WFSWriteTransactionOptions.prototype.srsName; - - -/** - * Handle. - * @type {string|undefined} - * @api - */ -olx.format.WFSWriteTransactionOptions.prototype.handle; - - -/** - * Must be set to true if the transaction is for a 3D layer. This will allow - * the Z coordinate to be included in the transaction. - * @type {boolean|undefined} - * @api - */ -olx.format.WFSWriteTransactionOptions.prototype.hasZ; - - -/** - * Native elements. Currently not supported. - * @type {Array.} - * @api - */ -olx.format.WFSWriteTransactionOptions.prototype.nativeElements; - - -/** - * GML options for the WFS transaction writer. - * @type {module:ol/format/GMLBase~Options|undefined} - * @api - */ -olx.format.WFSWriteTransactionOptions.prototype.gmlOptions; - - -/** - * WFS version to use for the transaction. Can be either `1.0.0` or `1.1.0`. - * Default is `1.1.0`. - * @type {string|undefined} - * @api - */ -olx.format.WFSWriteTransactionOptions.prototype.version; - - /** * @typedef {{splitCollection: (boolean|undefined)}} */ diff --git a/externs/xol.js b/externs/xol.js index e5bc5a0d41..29306696dc 100644 --- a/externs/xol.js +++ b/externs/xol.js @@ -1,21 +1,4 @@ -/** - * @typedef {Object} format_WFSWriteTransactionOptions - * @property {string} featureNS The namespace URI used for features. - * @property {string} featurePrefix The prefix for the feature namespace. - * @property {string} featureType The feature type name. - * @property {string|undefined} srsName SRS name. No srsName attribute will be set on geometries when this is not - * provided. - * @property {string|undefined} handle Handle. - * @property {boolean|undefined} hasZ Must be set to true if the transaction is for a 3D layer. This will allow - * the Z coordinate to be included in the transaction. - * @property {Array.} nativeElements Native elements. Currently not supported. - * @property {module:ol/format/GMLBase~Options|undefined} gmlOptions GML options for the WFS transaction writer. - * @property {string|undefined} version WFS version to use for the transaction. Can be either `1.0.0` or `1.1.0`. - * Default is `1.1.0`. - */ - - /** * @typedef {Object} format_WKTOptions * @property {boolean|undefined} splitCollection Whether to split GeometryCollections into diff --git a/src/ol/format/WFS.js b/src/ol/format/WFS.js index 71a98b1e01..295e982db8 100644 --- a/src/ol/format/WFS.js +++ b/src/ol/format/WFS.js @@ -55,6 +55,24 @@ import {createElementNS, isDocument, isNode, makeArrayPusher, makeChildAppender, */ +/** + * @typedef {Object} WriteTransactionOptions + * @property {string} featureNS The namespace URI used for features. + * @property {string} featurePrefix The prefix for the feature namespace. + * @property {string} featureType The feature type name. + * @property {string|undefined} srsName SRS name. No srsName attribute will be set on + * geometries when this is not provided. + * @property {string|undefined} handle Handle. + * @property {boolean|undefined} hasZ Must be set to true if the transaction is for + * a 3D layer. This will allow the Z coordinate to be included in the transaction. + * @property {Array.} nativeElements Native elements. Currently not supported. + * @property {module:ol/format/GMLBase~Options|undefined} gmlOptions GML options for + * the WFS transaction writer. + * @property {string|undefined} version WFS version to use for the transaction. Can be + * either `1.0.0` or `1.1.0`. Default is `1.1.0`. + */ + + /** * @type {string} */ @@ -982,7 +1000,7 @@ WFS.prototype.writeGetFeature = function(options) { * @param {Array.} inserts The features to insert. * @param {Array.} updates The features to update. * @param {Array.} deletes The features to delete. - * @param {olx.format.WFSWriteTransactionOptions} options Write options. + * @param {module:ol/format/WFS~WriteTransactionOptions} options Write options. * @return {Node} Result. * @api */