Move ol.WFSFeatureCollectionMetadata to ol/format/WFS

This commit is contained in:
Michael Kuenzli
2018-04-18 16:57:11 +02:00
committed by Frederic Junod
parent 76572b6ccf
commit d4a6169052
2 changed files with 12 additions and 12 deletions
+12 -4
View File
@@ -67,6 +67,14 @@ import {createElementNS, isDocument, isNode, makeArrayPusher, makeChildAppender,
*/ */
/**
* Number of features; bounds/extent.
* @typedef {Object} FeatureCollectionMetadata
* @property {number} numberOfFeatures
* @property {module:ol/extent~Extent} bounds
*/
/** /**
* @type {string} * @type {string}
*/ */
@@ -237,7 +245,7 @@ WFS.prototype.readTransactionResponse = function(source) {
* Read feature collection metadata of the source. * Read feature collection metadata of the source.
* *
* @param {Document|Node|Object|string} source Source. * @param {Document|Node|Object|string} source Source.
* @return {ol.WFSFeatureCollectionMetadata|undefined} * @return {module:ol/format/WFS~FeatureCollectionMetadata|undefined}
* FeatureCollection metadata. * FeatureCollection metadata.
* @api * @api
*/ */
@@ -259,7 +267,7 @@ WFS.prototype.readFeatureCollectionMetadata = function(source) {
/** /**
* @param {Document} doc Document. * @param {Document} doc Document.
* @return {ol.WFSFeatureCollectionMetadata|undefined} * @return {module:ol/format/WFS~FeatureCollectionMetadata|undefined}
* FeatureCollection metadata. * FeatureCollection metadata.
*/ */
WFS.prototype.readFeatureCollectionMetadataFromDocument = function(doc) { WFS.prototype.readFeatureCollectionMetadataFromDocument = function(doc) {
@@ -286,7 +294,7 @@ const FEATURE_COLLECTION_PARSERS = {
/** /**
* @param {Node} node Node. * @param {Node} node Node.
* @return {ol.WFSFeatureCollectionMetadata|undefined} * @return {module:ol/format/WFS~FeatureCollectionMetadata|undefined}
* FeatureCollection metadata. * FeatureCollection metadata.
*/ */
WFS.prototype.readFeatureCollectionMetadataFromNode = function(node) { WFS.prototype.readFeatureCollectionMetadataFromNode = function(node) {
@@ -295,7 +303,7 @@ WFS.prototype.readFeatureCollectionMetadataFromNode = function(node) {
node.getAttribute('numberOfFeatures')); node.getAttribute('numberOfFeatures'));
result['numberOfFeatures'] = value; result['numberOfFeatures'] = value;
return pushParseAndPop( return pushParseAndPop(
/** @type {ol.WFSFeatureCollectionMetadata} */ (result), /** @type {module:ol/format/WFS~FeatureCollectionMetadata} */ (result),
FEATURE_COLLECTION_PARSERS, node, [], this.gmlFormat_); FEATURE_COLLECTION_PARSERS, node, [], this.gmlFormat_);
}; };
-8
View File
@@ -150,14 +150,6 @@ ol.LoadingStrategy;
ol.RasterOperation; ol.RasterOperation;
/**
* Number of features; bounds/extent.
* @typedef {{numberOfFeatures: number,
* bounds: module:ol/extent~Extent}}
*/
ol.WFSFeatureCollectionMetadata;
/** /**
* Total deleted; total inserted; total updated; array of insert ids. * Total deleted; total inserted; total updated; array of insert ids.
* @typedef {{totalDeleted: number, * @typedef {{totalDeleted: number,