ol 9.0.0-dev.1706800368740 → 9.0.0-dev.1706883666326
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VectorTile.d.ts +2 -2
- package/VectorTile.d.ts.map +1 -1
- package/VectorTile.js +1 -1
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/featureloader.d.ts +2 -2
- package/featureloader.d.ts.map +1 -1
- package/featureloader.js +1 -1
- package/format/Feature.d.ts +12 -4
- package/format/Feature.d.ts.map +1 -1
- package/format/Feature.js +7 -2
- package/format/GeoJSON.d.ts +4 -4
- package/format/GeoJSON.js +2 -2
- package/format/JSONFeature.d.ts +12 -2
- package/format/JSONFeature.d.ts.map +1 -1
- package/format/JSONFeature.js +4 -4
- package/format/MVT.d.ts +6 -6
- package/format/MVT.d.ts.map +1 -1
- package/format/MVT.js +4 -4
- package/format/TextFeature.d.ts +9 -0
- package/format/TextFeature.d.ts.map +1 -1
- package/format/XMLFeature.d.ts +9 -0
- package/format/XMLFeature.d.ts.map +1 -1
- package/layer/BaseVector.d.ts +2 -2
- package/layer/VectorTile.d.ts +2 -2
- package/package.json +1 -1
- package/source/OGCVectorTile.d.ts +1 -1
- package/source/Vector.d.ts +57 -57
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +46 -46
- package/source/VectorTile.d.ts +9 -7
- package/source/VectorTile.d.ts.map +1 -1
- package/source/VectorTile.js +5 -3
- package/util.js +1 -1
package/featureloader.d.ts
CHANGED
|
@@ -48,11 +48,11 @@ export function loadFeaturesXhr(url: string | FeatureUrlFunction, format: import
|
|
|
48
48
|
* loads features (with XHR), parses the features, and adds them to the
|
|
49
49
|
* vector source.
|
|
50
50
|
* @param {string|FeatureUrlFunction} url Feature URL service.
|
|
51
|
-
* @param {import("./format/Feature.js").default} format Feature format.
|
|
51
|
+
* @param {import("./format/Feature.js").default<typeof import("./Feature.js").default|typeof import("./render/Feature.js").default>} format Feature format.
|
|
52
52
|
* @return {FeatureLoader} The feature loader.
|
|
53
53
|
* @api
|
|
54
54
|
*/
|
|
55
|
-
export function xhr(url: string | FeatureUrlFunction, format: import("./format/Feature.js").default): FeatureLoader;
|
|
55
|
+
export function xhr(url: string | FeatureUrlFunction, format: import("./format/Feature.js").default<typeof import("./Feature.js").default | typeof import("./render/Feature.js").default>): FeatureLoader;
|
|
56
56
|
/**
|
|
57
57
|
* Setter for the withCredentials configuration for the XHR.
|
|
58
58
|
*
|
package/featureloader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featureloader.d.ts","sourceRoot":"","sources":["featureloader.js"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;;;;;;GAUG;AACH,qCAVW,MAAM,GAAC,kBAAkB,UACzB,OAAO,qBAAqB,EAAE,OAAO,UACrC,OAAO,aAAa,EAAE,MAAM,cAC5B,MAAM,cACN,OAAO,sBAAsB,EAAE,OAAO,kBAC7B,MAAM,OAAO,cAAc,EAAE,OAAO,CAAC,QAAE,OAAO,sBAAsB,EAAE,OAAO,KAAG,IAAI,iBAEjF,IAAI,QAsE1B;AAED;;;;;;;;GAQG;AACH,yBALW,MAAM,GAAC,kBAAkB,UACzB,OAAO,qBAAqB,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"featureloader.d.ts","sourceRoot":"","sources":["featureloader.js"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;;;;;;GAUG;AACH,qCAVW,MAAM,GAAC,kBAAkB,UACzB,OAAO,qBAAqB,EAAE,OAAO,UACrC,OAAO,aAAa,EAAE,MAAM,cAC5B,MAAM,cACN,OAAO,sBAAsB,EAAE,OAAO,kBAC7B,MAAM,OAAO,cAAc,EAAE,OAAO,CAAC,QAAE,OAAO,sBAAsB,EAAE,OAAO,KAAG,IAAI,iBAEjF,IAAI,QAsE1B;AAED;;;;;;;;GAQG;AACH,yBALW,MAAM,GAAC,kBAAkB,UACzB,OAAO,qBAAqB,EAAE,OAAO,CAAC,cAAc,cAAc,EAAE,OAAO,GAAC,cAAc,qBAAqB,EAAE,OAAO,CAAC,GACxH,aAAa,CAmCxB;AAED;;;;;;GAMG;AACH,uDAJW,OAAO,QAMjB;;;;;;;;;;;;;;;;mCAzJ0B,CAAC,OAAO,iBAAiB,EAAE,OAAO,GAAC,OAAO,iBAAiB,EAAE,OAAO,CAAC,QAC/F,OAAmB,aAAa,EAAE,MAAM,QACxC,MAAkB,QAClB,OAAmB,sBAAsB,EAAE,OAAO,gBAC7B,MAAM,OAAO,cAAc,EAAE,OAAO,CAAC,KAAG,IAAI,4BACzC,IAAI,kBAAI,IAAI;;;;;;;;;;wCAYf,OAAO,aAAa,EAAE,MAAM,QAAE,MAAM,QAAE,OAAO,sBAAsB,EAAE,OAAO,KAAG,MAAM"}
|
package/featureloader.js
CHANGED
|
@@ -130,7 +130,7 @@ export function loadFeaturesXhr(
|
|
|
130
130
|
* loads features (with XHR), parses the features, and adds them to the
|
|
131
131
|
* vector source.
|
|
132
132
|
* @param {string|FeatureUrlFunction} url Feature URL service.
|
|
133
|
-
* @param {import("./format/Feature.js").default} format Feature format.
|
|
133
|
+
* @param {import("./format/Feature.js").default<typeof import("./Feature.js").default|typeof import("./render/Feature.js").default>} format Feature format.
|
|
134
134
|
* @return {FeatureLoader} The feature loader.
|
|
135
135
|
* @api
|
|
136
136
|
*/
|
package/format/Feature.d.ts
CHANGED
|
@@ -123,7 +123,11 @@ export type FeatureObject = {
|
|
|
123
123
|
/**
|
|
124
124
|
* <T>
|
|
125
125
|
*/
|
|
126
|
-
export type
|
|
126
|
+
export type FeatureToFeatureClass<T extends import("../Feature.js").FeatureLike> = T extends import("../render/Feature.js").default ? typeof import("../render/Feature.js").default : typeof import("../Feature.js").default;
|
|
127
|
+
/**
|
|
128
|
+
* <T>
|
|
129
|
+
*/
|
|
130
|
+
export type FeatureClassToFeature<T extends import("../Feature.js").FeatureClass> = T[keyof T] extends import("../render/Feature.js").default ? import("../render/Feature.js").default : import("../Feature.js").default;
|
|
127
131
|
import RenderFeature from '../render/Feature.js';
|
|
128
132
|
/**
|
|
129
133
|
* @typedef {Object} ReadOptions
|
|
@@ -186,9 +190,13 @@ import RenderFeature from '../render/Feature.js';
|
|
|
186
190
|
* @property {GeometryObject} [geometry] Geometry.
|
|
187
191
|
* @property {Object<string, *>} [properties] Properties.
|
|
188
192
|
*/
|
|
193
|
+
/***
|
|
194
|
+
* @template {import("../Feature.js").FeatureLike} T
|
|
195
|
+
* @typedef {T extends import("../render/Feature.js").default ? typeof import("../render/Feature.js").default : typeof import("../Feature.js").default} FeatureToFeatureClass<T>
|
|
196
|
+
*/
|
|
189
197
|
/***
|
|
190
198
|
* @template {import("../Feature.js").FeatureClass} T
|
|
191
|
-
* @typedef {T extends
|
|
199
|
+
* @typedef {T[keyof T] extends import("../render/Feature.js").default ? import("../render/Feature.js").default : import("../Feature.js").default} FeatureClassToFeature<T>
|
|
192
200
|
*/
|
|
193
201
|
/**
|
|
194
202
|
* @classdesc
|
|
@@ -262,9 +270,9 @@ declare class FeatureFormat<T extends import("../Feature.js").FeatureClass = typ
|
|
|
262
270
|
* @abstract
|
|
263
271
|
* @param {Document|Element|ArrayBuffer|Object|string} source Source.
|
|
264
272
|
* @param {ReadOptions} [options] Read options.
|
|
265
|
-
* @return {Array<
|
|
273
|
+
* @return {Array<import('../Feature.js').FeatureLike|FeatureClassToFeature<T>>} Features.
|
|
266
274
|
*/
|
|
267
|
-
readFeatures(source: Document | Element | ArrayBuffer | any | string, options?: ReadOptions | undefined): Array<
|
|
275
|
+
readFeatures(source: Document | Element | ArrayBuffer | any | string, options?: ReadOptions | undefined): Array<import('../Feature.js').FeatureLike | FeatureClassToFeature<T>>;
|
|
268
276
|
/**
|
|
269
277
|
* Read a single geometry from a source.
|
|
270
278
|
*
|
package/format/Feature.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feature.d.ts","sourceRoot":"","sources":["Feature.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Feature.d.ts","sourceRoot":"","sources":["Feature.js"],"names":[],"mappings":"AAgSA;;;;;;GAMG;AACH,kIAJW,OAAO,uDAkDjB;AAED;;;;GAIG;AACH,mDAJW,OAAO,cAAc,EAAE,MAAM,sCAE5B,OAAO,cAAc,EAAE,MAAM,CAgBxC;AA2BD;;;;GAIG;AACH,4CAJW,aAAa,qDAEZ,aAAa,GAAC,MAAM,aAAa,CAAC,CAkC7C;AAED;;;;GAIG;AACH,uCAJW,cAAc,GAAC,IAAI,qDAElB,OAAO,qBAAqB,EAAE,OAAO,CAkBhD;;;;;;;;;;qBAnaa,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;wBASnC,OAAO,YAAY,EAAE,cAAc;;;;;;;;;qBAOnC,OAAO,YAAY,EAAE,cAAc;;;;;;wBAInC,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;mBAoBpC,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK;;;;;UAKtC,OAAO,qBAAqB,EAAE,IAAI;;;;qBAClC,MAAM,MAAM,CAAC;;;;;;;;;;uCAMd,MAAM,cAAc,CAAC;6BAIrB,oBAAoB,mBAAyB;;;;;;;;;;;;;;;;;;;;mFAY7C,CAAC,SAAS,OAAO,sBAAsB,EAAE,OAAO,GAAG,cAAc,sBAAsB,EAAE,OAAO,GAAG,cAAc,eAAe,EAAE,OAAO;;;;oFAKzI,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,OAAO,sBAAsB,EAAE,OAAO,GAAG,OAAO,sBAAsB,EAAE,OAAO,GAAG,OAAO,eAAe,EAAE,OAAO;0BAnGvH,sBAAsB;AAwBhD;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;GAEG;AAEH;;;;;;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wBAJW,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,uCAErC,MAAM,GAAC,WAAW,CAI7B;IAED;;;;;;;OAOG;IACH,wBAJW,OAAO,qBAAqB,EAAE,OAAO,uCAEpC,MAAM,GAAC,WAAW,CAI7B;CACF;oBAzRmB,eAAe"}
|
package/format/Feature.js
CHANGED
|
@@ -94,9 +94,14 @@ import {
|
|
|
94
94
|
* @property {Object<string, *>} [properties] Properties.
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
+
/***
|
|
98
|
+
* @template {import("../Feature.js").FeatureLike} T
|
|
99
|
+
* @typedef {T extends import("../render/Feature.js").default ? typeof import("../render/Feature.js").default : typeof import("../Feature.js").default} FeatureToFeatureClass<T>
|
|
100
|
+
*/
|
|
101
|
+
|
|
97
102
|
/***
|
|
98
103
|
* @template {import("../Feature.js").FeatureClass} T
|
|
99
|
-
* @typedef {T extends
|
|
104
|
+
* @typedef {T[keyof T] extends import("../render/Feature.js").default ? import("../render/Feature.js").default : import("../Feature.js").default} FeatureClassToFeature<T>
|
|
100
105
|
*/
|
|
101
106
|
|
|
102
107
|
/**
|
|
@@ -213,7 +218,7 @@ class FeatureFormat {
|
|
|
213
218
|
* @abstract
|
|
214
219
|
* @param {Document|Element|ArrayBuffer|Object|string} source Source.
|
|
215
220
|
* @param {ReadOptions} [options] Read options.
|
|
216
|
-
* @return {Array<
|
|
221
|
+
* @return {Array<import('../Feature.js').FeatureLike|FeatureClassToFeature<T>>} Features.
|
|
217
222
|
*/
|
|
218
223
|
readFeatures(source, options) {
|
|
219
224
|
return abstract();
|
package/format/GeoJSON.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type GeoJSONMultiPoint = import("geojson").MultiPoint;
|
|
|
10
10
|
export type GeoJSONMultiLineString = import("geojson").MultiLineString;
|
|
11
11
|
export type GeoJSONMultiPolygon = import("geojson").MultiPolygon;
|
|
12
12
|
export type GeoJSONGeometryCollection = import("geojson").GeometryCollection;
|
|
13
|
-
export type Options<
|
|
13
|
+
export type Options<FeatureClassToFeature extends import("../Feature.js").FeatureClass> = {
|
|
14
14
|
/**
|
|
15
15
|
* Default data projection.
|
|
16
16
|
*/
|
|
@@ -37,7 +37,7 @@ export type Options<FeatureOrRenderFeature extends import("../Feature.js").Featu
|
|
|
37
37
|
* the primary concern, and features are not going to be modified or round-tripped through the format,
|
|
38
38
|
* consider using {@link module :ol/render/Feature~RenderFeature}
|
|
39
39
|
*/
|
|
40
|
-
featureClass?:
|
|
40
|
+
featureClass?: FeatureClassToFeature | undefined;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* @typedef {import("geojson").GeoJSON} GeoJSONObject
|
|
@@ -53,7 +53,7 @@ export type Options<FeatureOrRenderFeature extends import("../Feature.js").Featu
|
|
|
53
53
|
* @typedef {import("geojson").GeometryCollection} GeoJSONGeometryCollection
|
|
54
54
|
*/
|
|
55
55
|
/**
|
|
56
|
-
* @template {import("../Feature.js").FeatureClass}
|
|
56
|
+
* @template {import("../Feature.js").FeatureClass} FeatureClassToFeature
|
|
57
57
|
* @typedef {Object} Options
|
|
58
58
|
*
|
|
59
59
|
* @property {import("../proj.js").ProjectionLike} [dataProjection='EPSG:4326'] Default data projection.
|
|
@@ -64,7 +64,7 @@ export type Options<FeatureOrRenderFeature extends import("../Feature.js").Featu
|
|
|
64
64
|
* the geometry_name field in the feature GeoJSON. If set to `true` the GeoJSON reader
|
|
65
65
|
* will look for that field to set the geometry name. If both this field is set to `true`
|
|
66
66
|
* and a `geometryName` is provided, the `geometryName` will take precedence.
|
|
67
|
-
* @property {
|
|
67
|
+
* @property {FeatureClassToFeature} [featureClass] Feature class
|
|
68
68
|
* to be used when reading features. The default is {@link module:ol/Feature~Feature}. If performance is
|
|
69
69
|
* the primary concern, and features are not going to be modified or round-tripped through the format,
|
|
70
70
|
* consider using {@link module:ol/render/Feature~RenderFeature}
|
package/format/GeoJSON.js
CHANGED
|
@@ -33,7 +33,7 @@ import {isEmpty} from '../obj.js';
|
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @template {import("../Feature.js").FeatureClass}
|
|
36
|
+
* @template {import("../Feature.js").FeatureClass} FeatureClassToFeature
|
|
37
37
|
* @typedef {Object} Options
|
|
38
38
|
*
|
|
39
39
|
* @property {import("../proj.js").ProjectionLike} [dataProjection='EPSG:4326'] Default data projection.
|
|
@@ -44,7 +44,7 @@ import {isEmpty} from '../obj.js';
|
|
|
44
44
|
* the geometry_name field in the feature GeoJSON. If set to `true` the GeoJSON reader
|
|
45
45
|
* will look for that field to set the geometry name. If both this field is set to `true`
|
|
46
46
|
* and a `geometryName` is provided, the `geometryName` will take precedence.
|
|
47
|
-
* @property {
|
|
47
|
+
* @property {FeatureClassToFeature} [featureClass] Feature class
|
|
48
48
|
* to be used when reading features. The default is {@link module:ol/Feature~Feature}. If performance is
|
|
49
49
|
* the primary concern, and features are not going to be modified or round-tripped through the format,
|
|
50
50
|
* consider using {@link module:ol/render/Feature~RenderFeature}
|
package/format/JSONFeature.d.ts
CHANGED
|
@@ -16,10 +16,20 @@ declare class JSONFeature<T extends import("../Feature.js").FeatureClass = typeo
|
|
|
16
16
|
*
|
|
17
17
|
* @param {ArrayBuffer|Document|Element|Object|string} source Source.
|
|
18
18
|
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
19
|
-
* @return {import('./Feature.js').
|
|
19
|
+
* @return {import('./Feature.js').FeatureClassToFeature<T>} Feature.
|
|
20
20
|
* @api
|
|
21
21
|
*/
|
|
22
|
-
readFeature(source: ArrayBuffer | Document | Element | any | string, options?: import("./Feature.js").ReadOptions | undefined): import('./Feature.js').
|
|
22
|
+
readFeature(source: ArrayBuffer | Document | Element | any | string, options?: import("./Feature.js").ReadOptions | undefined): import('./Feature.js').FeatureClassToFeature<T>;
|
|
23
|
+
/**
|
|
24
|
+
* Read all features. Works with both a single feature and a feature
|
|
25
|
+
* collection.
|
|
26
|
+
*
|
|
27
|
+
* @param {ArrayBuffer|Document|Element|Object|string} source Source.
|
|
28
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
29
|
+
* @return {Array<import('./Feature.js').FeatureClassToFeature<T>>} Features.
|
|
30
|
+
* @api
|
|
31
|
+
*/
|
|
32
|
+
readFeatures(source: ArrayBuffer | Document | Element | any | string, options?: import("./Feature.js").ReadOptions | undefined): Array<import('./Feature.js').FeatureClassToFeature<T>>;
|
|
23
33
|
/**
|
|
24
34
|
* @abstract
|
|
25
35
|
* @param {Object} object Object.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSONFeature.d.ts","sourceRoot":"","sources":["JSONFeature.js"],"names":[],"mappings":";AAMA;;;;;;;;;GASG;AACH;IAYE;;;;;;;;OAQG;IACH,oBALW,WAAW,GAAC,QAAQ,GAAC,OAAO,SAAQ,MAAM,6DAEzC,OAAO,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"JSONFeature.d.ts","sourceRoot":"","sources":["JSONFeature.js"],"names":[],"mappings":";AAMA;;;;;;;;;GASG;AACH;IAYE;;;;;;;;OAQG;IACH,oBALW,WAAW,GAAC,QAAQ,GAAC,OAAO,SAAQ,MAAM,6DAEzC,OAAO,cAAc,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAU1D;IAED;;;;;;;;OAQG;IACH,qBALW,WAAW,GAAC,QAAQ,GAAC,OAAO,SAAQ,MAAM,6DAEzC,MAAM,OAAO,cAAc,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAUjE;IAED;;;;;;OAMG;IACH,wGAFY,OAAO,eAAe,EAAE,OAAO,GAAC,OAAO,sBAAsB,EAAE,OAAO,GAAC,MAAM,OAAO,sBAAsB,EAAE,OAAO,CAAC,CAI/H;IAED;;;;;;OAMG;IACH,yGAFY,MAAM,OAAO,eAAe,EAAE,OAAO,GAAC,OAAO,sBAAsB,EAAE,OAAO,CAAC,CAIxF;IAiBD;;;;;;OAMG;IACH,yGAFY,OAAO,qBAAqB,EAAE,OAAO,CAIhD;IAED;;;;;;OAMG;IACH,uBAJW,WAAW,GAAC,QAAQ,GAAC,OAAO,SAAQ,MAAM,GACzC,OAAO,uBAAuB,EAAE,OAAO,CAKlD;IAED;;;;;OAKG;IACH,iDAFY,OAAO,uBAAuB,EAAE,OAAO,CAIlD;IAED;;;;;;;OAOG;IACH,sBALW,OAAO,eAAe,EAAE,OAAO,8DAE9B,MAAM,CAKjB;IAED;;;;;OAKG;IACH,4BAJW,OAAO,eAAe,EAAE,OAAO,kEAMzC;IAED;;;;;;;OAOG;IACH,wBALW,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,8DAErC,MAAM,CAKjB;IAED;;;;;OAKG;IACH,8BAJW,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,kEAMhD;IAED;;;;;;;OAOG;IACH,wBALW,OAAO,qBAAqB,EAAE,OAAO,8DAEpC,MAAM,CAKjB;IAED;;;;;OAKG;IACH,8BAJW,OAAO,qBAAqB,EAAE,OAAO,kEAM/C;CACF;0BAnMyB,cAAc"}
|
package/format/JSONFeature.js
CHANGED
|
@@ -32,11 +32,11 @@ class JSONFeature extends FeatureFormat {
|
|
|
32
32
|
*
|
|
33
33
|
* @param {ArrayBuffer|Document|Element|Object|string} source Source.
|
|
34
34
|
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
35
|
-
* @return {import('./Feature.js').
|
|
35
|
+
* @return {import('./Feature.js').FeatureClassToFeature<T>} Feature.
|
|
36
36
|
* @api
|
|
37
37
|
*/
|
|
38
38
|
readFeature(source, options) {
|
|
39
|
-
return /** @type {import('./Feature.js').
|
|
39
|
+
return /** @type {import('./Feature.js').FeatureClassToFeature<T>} */ (
|
|
40
40
|
this.readFeatureFromObject(
|
|
41
41
|
getObject(source),
|
|
42
42
|
this.getReadOptions(source, options),
|
|
@@ -50,11 +50,11 @@ class JSONFeature extends FeatureFormat {
|
|
|
50
50
|
*
|
|
51
51
|
* @param {ArrayBuffer|Document|Element|Object|string} source Source.
|
|
52
52
|
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
53
|
-
* @return {Array<import('./Feature.js').
|
|
53
|
+
* @return {Array<import('./Feature.js').FeatureClassToFeature<T>>} Features.
|
|
54
54
|
* @api
|
|
55
55
|
*/
|
|
56
56
|
readFeatures(source, options) {
|
|
57
|
-
return /** @type {Array<import('./Feature.js').
|
|
57
|
+
return /** @type {Array<import('./Feature.js').FeatureClassToFeature<T>>} */ (
|
|
58
58
|
this.readFeaturesFromObject(
|
|
59
59
|
getObject(source),
|
|
60
60
|
this.getReadOptions(source, options),
|
package/format/MVT.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export default MVT;
|
|
2
|
-
export type Options<
|
|
2
|
+
export type Options<FeatureClassToFeature extends import("../Feature.js").FeatureClass> = {
|
|
3
3
|
/**
|
|
4
4
|
* Class for features returned by
|
|
5
5
|
* {@link module :ol/format/MVT~MVT#readFeatures}. Set to {@link module :ol/Feature~Feature} to get full editing and geometry
|
|
6
6
|
* support at the cost of decreased rendering performance. The default is
|
|
7
7
|
* {@link module :ol/render/Feature~RenderFeature}, which is optimized for rendering and hit detection.
|
|
8
8
|
*/
|
|
9
|
-
featureClass?:
|
|
9
|
+
featureClass?: FeatureClassToFeature | undefined;
|
|
10
10
|
/**
|
|
11
11
|
* Geometry name to use when creating features.
|
|
12
12
|
*/
|
|
@@ -26,9 +26,9 @@ export type Options<FeatureOrRenderFeature extends import("../Feature.js").Featu
|
|
|
26
26
|
idProperty?: string | undefined;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
* @template {import("../Feature.js").FeatureClass}
|
|
29
|
+
* @template {import("../Feature.js").FeatureClass} FeatureClassToFeature
|
|
30
30
|
* @typedef {Object} Options
|
|
31
|
-
* @property {
|
|
31
|
+
* @property {FeatureClassToFeature} [featureClass] Class for features returned by
|
|
32
32
|
* {@link module:ol/format/MVT~MVT#readFeatures}. Set to {@link module:ol/Feature~Feature} to get full editing and geometry
|
|
33
33
|
* support at the cost of decreased rendering performance. The default is
|
|
34
34
|
* {@link module:ol/render/Feature~RenderFeature}, which is optimized for rendering and hit detection.
|
|
@@ -99,10 +99,10 @@ declare class MVT<T extends import("../Feature.js").FeatureClass = typeof Render
|
|
|
99
99
|
*
|
|
100
100
|
* @param {ArrayBuffer} source Source.
|
|
101
101
|
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
102
|
-
* @return {Array<import('./Feature.js').
|
|
102
|
+
* @return {Array<import('./Feature.js').FeatureClassToFeature<T>>} Features.
|
|
103
103
|
* @api
|
|
104
104
|
*/
|
|
105
|
-
readFeatures(source: ArrayBuffer, options?: import("./Feature.js").ReadOptions | undefined): Array<import('./Feature.js').
|
|
105
|
+
readFeatures(source: ArrayBuffer, options?: import("./Feature.js").ReadOptions | undefined): Array<import('./Feature.js').FeatureClassToFeature<T>>;
|
|
106
106
|
/**
|
|
107
107
|
* Read the projection from the source.
|
|
108
108
|
*
|
package/format/MVT.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MVT.d.ts","sourceRoot":"","sources":["MVT.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA;;;;;;;;;;;;GAYG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,8CAiDC;IApCC;;;OAGG;IACH,sBAEiB;IAEjB;;;OAGG;IACH,sBAAyC;IAEzC;;;OAGG;IACH,mBAAiE;IAEjE;;;OAGG;IACH,gBAAqD;IAErD;;;OAGG;IACH,oBAAqC;IAQvC;;;;;;;;OAQG;IACH,yBAoDC;IAED;;;;;;OAMG;IACH,uBAuEC;IASD;;;;;;;OAOG;IACH,qBALW,WAAW,6DAEV,MAAM,OAAO,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"MVT.d.ts","sourceRoot":"","sources":["MVT.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA;;;;;;;;;;;;GAYG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,8CAiDC;IApCC;;;OAGG;IACH,sBAEiB;IAEjB;;;OAGG;IACH,sBAAyC;IAEzC;;;OAGG;IACH,mBAAiE;IAEjE;;;OAGG;IACH,gBAAqD;IAErD;;;OAGG;IACH,oBAAqC;IAQvC;;;;;;;;OAQG;IACH,yBAoDC;IAED;;;;;;OAMG;IACH,uBAuEC;IASD;;;;;;;OAOG;IACH,qBALW,WAAW,6DAEV,MAAM,OAAO,cAAc,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAkCjE;IAED;;;;;;OAMG;IACH,uBAJW,QAAQ,GAAC,OAAO,SAAQ,MAAM,GAC7B,OAAO,uBAAuB,EAAE,OAAO,CAKlD;IAED;;;;OAIG;IACH,kBAHW,MAAM,MAAM,CAAC,QAKvB;CACF;0BAnSyB,sBAAsB;0BATU,cAAc"}
|
package/format/MVT.js
CHANGED
|
@@ -17,9 +17,9 @@ import {get} from '../proj.js';
|
|
|
17
17
|
import {inflateEnds} from '../geom/flat/orient.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* @template {import("../Feature.js").FeatureClass}
|
|
20
|
+
* @template {import("../Feature.js").FeatureClass} FeatureClassToFeature
|
|
21
21
|
* @typedef {Object} Options
|
|
22
|
-
* @property {
|
|
22
|
+
* @property {FeatureClassToFeature} [featureClass] Class for features returned by
|
|
23
23
|
* {@link module:ol/format/MVT~MVT#readFeatures}. Set to {@link module:ol/Feature~Feature} to get full editing and geometry
|
|
24
24
|
* support at the cost of decreased rendering performance. The default is
|
|
25
25
|
* {@link module:ol/render/Feature~RenderFeature}, which is optimized for rendering and hit detection.
|
|
@@ -248,7 +248,7 @@ class MVT extends FeatureFormat {
|
|
|
248
248
|
*
|
|
249
249
|
* @param {ArrayBuffer} source Source.
|
|
250
250
|
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
251
|
-
* @return {Array<import('./Feature.js').
|
|
251
|
+
* @return {Array<import('./Feature.js').FeatureClassToFeature<T>>} Features.
|
|
252
252
|
* @api
|
|
253
253
|
*/
|
|
254
254
|
readFeatures(source, options) {
|
|
@@ -279,7 +279,7 @@ class MVT extends FeatureFormat {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
return /** @type {Array<import('./Feature.js').
|
|
282
|
+
return /** @type {Array<import('./Feature.js').FeatureClassToFeature<T>>} */ (
|
|
283
283
|
features
|
|
284
284
|
);
|
|
285
285
|
}
|
package/format/TextFeature.d.ts
CHANGED
|
@@ -26,6 +26,15 @@ declare class TextFeature extends FeatureFormat<typeof import("../Feature.js").d
|
|
|
26
26
|
* @return {import("../Feature.js").default} Feature.
|
|
27
27
|
*/
|
|
28
28
|
protected readFeatureFromText(text: string, options?: import("../format/Feature.js").ReadOptions | undefined): import("../Feature.js").default;
|
|
29
|
+
/**
|
|
30
|
+
* Read the features from the source.
|
|
31
|
+
*
|
|
32
|
+
* @param {Document|Element|Object|string} source Source.
|
|
33
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
34
|
+
* @return {Array<import("../Feature.js").default>} Features.
|
|
35
|
+
* @api
|
|
36
|
+
*/
|
|
37
|
+
readFeatures(source: Document | Element | any | string, options?: import("../format/Feature.js").ReadOptions | undefined): Array<import("../Feature.js").default>;
|
|
29
38
|
/**
|
|
30
39
|
* @abstract
|
|
31
40
|
* @param {string} text Text.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextFeature.d.ts","sourceRoot":"","sources":["TextFeature.js"],"names":[],"mappings":";AAMA;;;;;;;GAOG;AACH;IACE,cAEC;IASD;;;;;;;OAOG;IACH,oBALW,QAAQ,GAAC,OAAO,SAAQ,MAAM,qEAE7B,OAAO,eAAe,EAAE,OAAO,CAQ1C;IAED;;;;;;OAMG;IACH,oCALW,MAAM,qEAGL,OAAO,eAAe,EAAE,OAAO,CAI1C;
|
|
1
|
+
{"version":3,"file":"TextFeature.d.ts","sourceRoot":"","sources":["TextFeature.js"],"names":[],"mappings":";AAMA;;;;;;;GAOG;AACH;IACE,cAEC;IASD;;;;;;;OAOG;IACH,oBALW,QAAQ,GAAC,OAAO,SAAQ,MAAM,qEAE7B,OAAO,eAAe,EAAE,OAAO,CAQ1C;IAED;;;;;;OAMG;IACH,oCALW,MAAM,qEAGL,OAAO,eAAe,EAAE,OAAO,CAI1C;IAED;;;;;;;OAOG;IACH,qBALW,QAAQ,GAAC,OAAO,SAAQ,MAAM,qEAE7B,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,CAQjD;IAED;;;;;;OAMG;IACH,qCALW,MAAM,qEAGL,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,CAIjD;IAiBD;;;;;;OAMG;IACH,qCALW,MAAM,qEAGL,OAAO,qBAAqB,EAAE,OAAO,CAIhD;IAaD;;;;OAIG;IACH,uCAJW,MAAM,GAEL,OAAO,uBAAuB,EAAE,OAAO,GAAC,SAAS,CAI5D;IAED;;;;;;;OAOG;IACH,sBALW,OAAO,eAAe,EAAE,OAAO,sEAE9B,MAAM,CAKjB;IAED;;;;;;OAMG;IACH,oCALW,OAAO,eAAe,EAAE,OAAO,sEAG9B,MAAM,CAIjB;IAED;;;;;;;OAOG;IACH,wBALW,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,sEAErC,MAAM,CAKjB;IAED;;;;;;OAMG;IACH,sCALW,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,sEAGrC,MAAM,CAIjB;IAED;;;;;;;OAOG;IACH,wBALW,OAAO,qBAAqB,EAAE,OAAO,sEAEpC,MAAM,CAKjB;IAED;;;;;;OAMG;IACH,sCALW,OAAO,qBAAqB,EAAE,OAAO,sEAGpC,MAAM,CAIjB;CACF;0BA7LyB,sBAAsB"}
|
package/format/XMLFeature.d.ts
CHANGED
|
@@ -35,6 +35,15 @@ declare class XMLFeature extends FeatureFormat<typeof import("../Feature.js").de
|
|
|
35
35
|
* @return {import("../Feature.js").default} Feature.
|
|
36
36
|
*/
|
|
37
37
|
readFeatureFromNode(node: Element, options?: import("../format/Feature.js").ReadOptions | undefined): import("../Feature.js").default;
|
|
38
|
+
/**
|
|
39
|
+
* Read all features from a feature collection.
|
|
40
|
+
*
|
|
41
|
+
* @param {Document|Element|Object|string} source Source.
|
|
42
|
+
* @param {import("./Feature.js").ReadOptions} [options] Options.
|
|
43
|
+
* @return {Array<import("../Feature.js").default>} Features.
|
|
44
|
+
* @api
|
|
45
|
+
*/
|
|
46
|
+
readFeatures(source: Document | Element | any | string, options?: import("../format/Feature.js").ReadOptions | undefined): Array<import("../Feature.js").default>;
|
|
38
47
|
/**
|
|
39
48
|
* @param {Document} doc Document.
|
|
40
49
|
* @param {import("./Feature.js").ReadOptions} [options] Options.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XMLFeature.d.ts","sourceRoot":"","sources":["XMLFeature.js"],"names":[],"mappings":";AAQA;;;;;;;GAOG;AACH;IACE,cAQC;IALC;;;OAGG;IACH,uBAAwC;IAU1C;;;;;;;OAOG;IACH,oBALW,QAAQ,GAAC,OAAO,SAAQ,MAAM,qEAE7B,OAAO,eAAe,EAAE,OAAO,CAkB1C;IAED;;;;OAIG;IACH,6BAJW,QAAQ,qEAEP,OAAO,eAAe,EAAE,OAAO,CAQ1C;IAED;;;;OAIG;IACH,0BAJW,OAAO,qEAEN,OAAO,eAAe,EAAE,OAAO,CAI1C;
|
|
1
|
+
{"version":3,"file":"XMLFeature.d.ts","sourceRoot":"","sources":["XMLFeature.js"],"names":[],"mappings":";AAQA;;;;;;;GAOG;AACH;IACE,cAQC;IALC;;;OAGG;IACH,uBAAwC;IAU1C;;;;;;;OAOG;IACH,oBALW,QAAQ,GAAC,OAAO,SAAQ,MAAM,qEAE7B,OAAO,eAAe,EAAE,OAAO,CAkB1C;IAED;;;;OAIG;IACH,6BAJW,QAAQ,qEAEP,OAAO,eAAe,EAAE,OAAO,CAQ1C;IAED;;;;OAIG;IACH,0BAJW,OAAO,qEAEN,OAAO,eAAe,EA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@@
|
|
|
1
1
|
export default BaseVectorLayer;
|
|
2
|
-
export type Options<VectorSourceType extends import("../source/Vector.js").default<import("../Feature").default<import("../geom/Geometry.js").default>> | import("../source/VectorTile.js").default
|
|
2
|
+
export type Options<VectorSourceType extends import("../source/Vector.js").default<import("../Feature").default<import("../geom/Geometry.js").default>> | import("../source/VectorTile.js").default<import("../Feature").default<import("../geom/Geometry.js").default>>> = {
|
|
3
3
|
/**
|
|
4
4
|
* A CSS class name to set to the layer element.
|
|
5
5
|
*/
|
|
@@ -122,7 +122,7 @@ export type Options<VectorSourceType extends import("../source/Vector.js").defau
|
|
|
122
122
|
* @extends {Layer<VectorSourceType, RendererType>}
|
|
123
123
|
* @api
|
|
124
124
|
*/
|
|
125
|
-
declare class BaseVectorLayer<VectorSourceType extends import("../source/Vector.js").default<import("../Feature").default<import("../geom/Geometry.js").default>> | import("../source/VectorTile.js").default
|
|
125
|
+
declare class BaseVectorLayer<VectorSourceType extends import("../source/Vector.js").default<import("../Feature").default<import("../geom/Geometry.js").default>> | import("../source/VectorTile.js").default<import("../Feature").default<import("../geom/Geometry.js").default>>, RendererType extends import("../renderer/canvas/VectorLayer.js").default | import("../renderer/canvas/VectorTileLayer.js").default | import("../renderer/canvas/VectorImageLayer.js").default | import("../renderer/webgl/PointsLayer.js").default> extends Layer<VectorSourceType, RendererType> {
|
|
126
126
|
/**
|
|
127
127
|
* @param {Options<VectorSourceType>} [options] Options.
|
|
128
128
|
*/
|
package/layer/VectorTile.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export type Options = {
|
|
|
76
76
|
/**
|
|
77
77
|
* Source.
|
|
78
78
|
*/
|
|
79
|
-
source?: import("../source/VectorTile.js").default | undefined;
|
|
79
|
+
source?: import("../source/VectorTile.js").default<import("../Feature").default<import("../geom/Geometry.js").default>> | undefined;
|
|
80
80
|
/**
|
|
81
81
|
* Sets the layer as overlay on a map. The map will not manage
|
|
82
82
|
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
@@ -224,7 +224,7 @@ export type Options = {
|
|
|
224
224
|
* @extends {BaseVectorLayer<import("../source/VectorTile.js").default, CanvasVectorTileLayerRenderer>}
|
|
225
225
|
* @api
|
|
226
226
|
*/
|
|
227
|
-
declare class VectorTileLayer extends BaseVectorLayer<import("../source/VectorTile.js").default
|
|
227
|
+
declare class VectorTileLayer extends BaseVectorLayer<import("../source/VectorTile.js").default<import("../Feature").default<import("../geom/Geometry.js").default>>, CanvasVectorTileLayerRenderer> {
|
|
228
228
|
/**
|
|
229
229
|
* @param {Options} [options] Options.
|
|
230
230
|
*/
|
package/package.json
CHANGED
|
@@ -103,7 +103,7 @@ export type Options = {
|
|
|
103
103
|
* provide the `mediaType` option.
|
|
104
104
|
* @api
|
|
105
105
|
*/
|
|
106
|
-
declare class OGCVectorTile extends VectorTileSource {
|
|
106
|
+
declare class OGCVectorTile extends VectorTileSource<import("../Feature.js").default<import("../geom/Geometry.js").default>> {
|
|
107
107
|
/**
|
|
108
108
|
* @param {Options} options OGC vector tile options.
|
|
109
109
|
*/
|