Updated type annotations
This commit is contained in:
@@ -14,7 +14,7 @@ import {get as getProjection, equivalent as equivalentProjection, transformExten
|
||||
* can not be derived from the data and if no `defaultDataProjection` is set for a format,
|
||||
* the features will not be reprojected.
|
||||
* @property {module:ol/extent~Extent} extent Tile extent of the tile being read. This is only used and
|
||||
* required for {@link ol.format.MVT}.
|
||||
* required for {@link module:ol/format/MVT}.
|
||||
* @property {module:ol/proj~ProjectionLike} featureProjection Projection of the feature geometries
|
||||
* created by the format reader. If not provided, features will be returned in the
|
||||
* `dataProjection`.
|
||||
@@ -230,7 +230,7 @@ export function transformWithOptions(geometry, write, opt_options) {
|
||||
write ? featureProjection : dataProjection,
|
||||
write ? dataProjection : featureProjection);
|
||||
} else {
|
||||
// FIXME this is necessary because ol.format.GML treats extents
|
||||
// FIXME this is necessary because GML treats extents
|
||||
// as geometries
|
||||
transformed = transformExtent(
|
||||
geometry,
|
||||
|
||||
@@ -67,8 +67,7 @@ export const GMLNS = 'http://www.opengis.net/gml';
|
||||
* instantiated in apps.
|
||||
* Feature base format for reading and writing data in the GML format.
|
||||
* This class cannot be instantiated, it contains only base content that
|
||||
* is shared with versioned format classes ol.format.GML2 and
|
||||
* ol.format.GML3.
|
||||
* is shared with versioned format classes GML2 and GML3.
|
||||
*
|
||||
* @constructor
|
||||
* @abstract
|
||||
|
||||
@@ -328,7 +328,7 @@ function writePolygonGeometry(geometry, opt_options) {
|
||||
|
||||
/**
|
||||
* Read a feature from a GeoJSON Feature source. Only works for Feature or
|
||||
* geometry types. Use {@link ol.format.GeoJSON#readFeatures} to read
|
||||
* geometry types. Use {@link module:ol/format/GeoJSON#readFeatures} to read
|
||||
* FeatureCollection source. If feature at source has an id, it will be used
|
||||
* as Feature id by calling {@link module:ol/Feature#setId} internally.
|
||||
*
|
||||
|
||||
@@ -25,7 +25,7 @@ import RenderFeature from '../render/Feature.js';
|
||||
/**
|
||||
* @typedef {Object} Options
|
||||
* @property {function((module:ol/geom/Geometry|Object.<string,*>)=)|function(module:ol/geom/GeometryType,Array.<number>,(Array.<number>|Array.<Array.<number>>),Object.<string,*>,number)} [featureClass]
|
||||
* Class for features returned by {@link ol.format.MVT#readFeatures}. Set to
|
||||
* Class for features returned by {@link module:ol/format/MVT#readFeatures}. Set to
|
||||
* {@link module:ol/Feature~Feature} to get full editing and geometry support at the cost of
|
||||
* decreased rendering performance. The default is {@link module:ol/render/Feature~RenderFeature},
|
||||
* which is optimized for rendering and hit detection.
|
||||
|
||||
@@ -21,7 +21,7 @@ import {createElementNS, isDocument, isNode, makeArrayPusher, makeChildAppender,
|
||||
* @typedef {Object} Options
|
||||
* @property {Object.<string, string>|string} [featureNS] The namespace URI used for features.
|
||||
* @property {Array.<string>|string} [featureType] The feature type to parse. Only used for read operations.
|
||||
* @property {module:ol/format/GMLBase} [gmlFormat] The GML format to use to parse the response. Default is `ol.format.GML3`.
|
||||
* @property {module:ol/format/GMLBase} [gmlFormat] The GML format to use to parse the response. Default is `ol/format/GML3`.
|
||||
* @property {string} [schemaLocation] Optional schemaLocation to use for serialization, this will override the default.
|
||||
*/
|
||||
|
||||
@@ -45,7 +45,7 @@ import {createElementNS, isDocument, isNode, makeArrayPusher, makeChildAppender,
|
||||
* Web Feature Services have repurposed `maxfeatures` instead.
|
||||
* @property {module:ol/extent~Extent} [bbox] Extent to use for the BBOX filter.
|
||||
* @property {module:ol/format/filter/Filter} [filter] Filter condition. See
|
||||
* {@link ol.format.filter} for more information.
|
||||
* {@link module:ol/format/Filter} for more information.
|
||||
* @property {string} [resultType] Indicates what response should be returned,
|
||||
* E.g. `hits` only includes the `numberOfFeatures` attribute in the response and no features.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user