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

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}
*/
@@ -237,7 +245,7 @@ WFS.prototype.readTransactionResponse = function(source) {
* Read feature collection metadata of the source.
*
* @param {Document|Node|Object|string} source Source.
* @return {ol.WFSFeatureCollectionMetadata|undefined}
* @return {module:ol/format/WFS~FeatureCollectionMetadata|undefined}
* FeatureCollection metadata.
* @api
*/
@@ -259,7 +267,7 @@ WFS.prototype.readFeatureCollectionMetadata = function(source) {
/**
* @param {Document} doc Document.
* @return {ol.WFSFeatureCollectionMetadata|undefined}
* @return {module:ol/format/WFS~FeatureCollectionMetadata|undefined}
* FeatureCollection metadata.
*/
WFS.prototype.readFeatureCollectionMetadataFromDocument = function(doc) {
@@ -286,7 +294,7 @@ const FEATURE_COLLECTION_PARSERS = {
/**
* @param {Node} node Node.
* @return {ol.WFSFeatureCollectionMetadata|undefined}
* @return {module:ol/format/WFS~FeatureCollectionMetadata|undefined}
* FeatureCollection metadata.
*/
WFS.prototype.readFeatureCollectionMetadataFromNode = function(node) {
@@ -295,7 +303,7 @@ WFS.prototype.readFeatureCollectionMetadataFromNode = function(node) {
node.getAttribute('numberOfFeatures'));
result['numberOfFeatures'] = value;
return pushParseAndPop(
/** @type {ol.WFSFeatureCollectionMetadata} */ (result),
/** @type {module:ol/format/WFS~FeatureCollectionMetadata} */ (result),
FEATURE_COLLECTION_PARSERS, node, [], this.gmlFormat_);
};

View File

@@ -150,14 +150,6 @@ ol.LoadingStrategy;
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.
* @typedef {{totalDeleted: number,