ol 9.2.5-sh.1 → 9.2.5-sh.2
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/VectorRenderTile.d.ts +3 -3
- package/VectorRenderTile.d.ts.map +1 -1
- package/VectorTile.d.ts +19 -16
- package/VectorTile.d.ts.map +1 -1
- package/VectorTile.js +12 -9
- package/dist/ol.js +2 -2
- package/dist/ol.js.map +1 -1
- package/featureloader.d.ts +8 -8
- package/featureloader.d.ts.map +1 -1
- package/featureloader.js +5 -5
- package/format/EsriJSON.d.ts +0 -7
- package/format/EsriJSON.d.ts.map +1 -1
- package/format/Feature.d.ts +10 -10
- package/format/Feature.d.ts.map +1 -1
- package/format/Feature.js +6 -6
- package/format/GeoJSON.d.ts +9 -9
- package/format/GeoJSON.d.ts.map +1 -1
- package/format/GeoJSON.js +22 -17
- package/format/JSONFeature.d.ts +7 -27
- package/format/JSONFeature.d.ts.map +1 -1
- package/format/JSONFeature.js +10 -12
- package/format/MVT.d.ts +12 -12
- package/format/MVT.d.ts.map +1 -1
- package/format/MVT.js +16 -18
- package/format/TextFeature.d.ts +0 -9
- package/format/TextFeature.d.ts.map +1 -1
- package/format/TopoJSON.d.ts +0 -7
- package/format/TopoJSON.d.ts.map +1 -1
- package/format/XMLFeature.d.ts +0 -9
- package/format/XMLFeature.d.ts.map +1 -1
- package/interaction/Draw.d.ts +1 -1
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Modify.d.ts +3 -3
- package/interaction/Modify.d.ts.map +1 -1
- package/interaction/Select.d.ts +1 -2
- package/interaction/Select.d.ts.map +1 -1
- package/layer/BaseVector.d.ts +7 -6
- package/layer/BaseVector.d.ts.map +1 -1
- package/layer/BaseVector.js +6 -4
- package/layer/Graticule.d.ts +3 -2
- package/layer/Graticule.d.ts.map +1 -1
- package/layer/Graticule.js +1 -1
- package/layer/Heatmap.d.ts +8 -7
- package/layer/Heatmap.d.ts.map +1 -1
- package/layer/Heatmap.js +7 -5
- package/layer/Tile.d.ts +2 -2
- package/layer/Tile.js +1 -1
- package/layer/Vector.d.ts +19 -9
- package/layer/Vector.d.ts.map +1 -1
- package/layer/Vector.js +12 -5
- package/layer/VectorImage.d.ts +9 -7
- package/layer/VectorImage.d.ts.map +1 -1
- package/layer/VectorImage.js +6 -4
- package/layer/VectorTile.d.ts +19 -9
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/VectorTile.js +16 -9
- package/package.json +1 -1
- package/renderer/canvas/TileLayer.d.ts +2 -2
- package/renderer/canvas/TileLayer.js +1 -1
- package/renderer/canvas/VectorImageLayer.d.ts +1 -1
- package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorLayer.d.ts +1 -1
- package/renderer/canvas/VectorLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.d.ts +3 -3
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.js +1 -1
- package/source/OGCVectorTile.d.ts +7 -7
- package/source/OGCVectorTile.d.ts.map +1 -1
- package/source/OGCVectorTile.js +3 -3
- package/source/SentinelHub.d.ts +11 -11
- package/source/SentinelHub.d.ts.map +1 -1
- package/source/SentinelHub.js +20 -20
- package/source/Vector.d.ts +14 -14
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +10 -10
- package/source/VectorTile.d.ts +8 -7
- package/source/VectorTile.d.ts.map +1 -1
- package/source/VectorTile.js +3 -2
- package/util.js +1 -1
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} [FeatureClassType=import('./Feature.js').FeatureToFeatureClass<import("../render/Feature.js").default>]
|
|
21
21
|
* @typedef {Object} Options
|
|
22
|
-
* @property {
|
|
22
|
+
* @property {FeatureClassType} [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.
|
|
@@ -34,13 +34,13 @@ import {inflateEnds} from '../geom/flat/orient.js';
|
|
|
34
34
|
* @classdesc
|
|
35
35
|
* Feature format for reading data in the Mapbox MVT format.
|
|
36
36
|
*
|
|
37
|
-
* @template {import('../Feature.js').FeatureClass} [
|
|
38
|
-
* @extends {FeatureFormat<
|
|
37
|
+
* @template {import('../Feature.js').FeatureClass} [FeatureClassType=import('./Feature.js').FeatureToFeatureClass<import("../render/Feature.js").default>]
|
|
38
|
+
* @extends {FeatureFormat<FeatureClassType>}
|
|
39
39
|
* @api
|
|
40
40
|
*/
|
|
41
41
|
class MVT extends FeatureFormat {
|
|
42
42
|
/**
|
|
43
|
-
* @param {Options<
|
|
43
|
+
* @param {Options<FeatureClassType>} [options] Options.
|
|
44
44
|
*/
|
|
45
45
|
constructor(options) {
|
|
46
46
|
super();
|
|
@@ -57,7 +57,7 @@ class MVT extends FeatureFormat {
|
|
|
57
57
|
|
|
58
58
|
this.featureClass = options.featureClass
|
|
59
59
|
? options.featureClass
|
|
60
|
-
: /** @type {
|
|
60
|
+
: /** @type {FeatureClassType} */ (RenderFeature);
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* @private
|
|
@@ -157,7 +157,7 @@ class MVT extends FeatureFormat {
|
|
|
157
157
|
* @param {PBF} pbf PBF
|
|
158
158
|
* @param {Object} rawFeature Raw Mapbox feature.
|
|
159
159
|
* @param {import("./Feature.js").ReadOptions} options Read options.
|
|
160
|
-
* @return {import(
|
|
160
|
+
* @return {import('./Feature.js').FeatureClassToFeature<FeatureClassType>|null} Feature.
|
|
161
161
|
*/
|
|
162
162
|
createFeature_(pbf, rawFeature, options) {
|
|
163
163
|
const type = rawFeature.type;
|
|
@@ -185,14 +185,10 @@ class MVT extends FeatureFormat {
|
|
|
185
185
|
const geometryType = getGeometryType(type, ends.length);
|
|
186
186
|
|
|
187
187
|
if (this.featureClass === RenderFeature) {
|
|
188
|
-
feature =
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
ends,
|
|
192
|
-
2,
|
|
193
|
-
values,
|
|
194
|
-
id,
|
|
195
|
-
);
|
|
188
|
+
feature =
|
|
189
|
+
new /** @type {import('./Feature.js').FeatureToFeatureClass<RenderFeature>} */ (
|
|
190
|
+
this.featureClass
|
|
191
|
+
)(geometryType, flatCoordinates, ends, 2, values, id);
|
|
196
192
|
feature.transform(options.dataProjection);
|
|
197
193
|
} else {
|
|
198
194
|
let geom;
|
|
@@ -229,7 +225,9 @@ class MVT extends FeatureFormat {
|
|
|
229
225
|
feature.setProperties(values, true);
|
|
230
226
|
}
|
|
231
227
|
|
|
232
|
-
return
|
|
228
|
+
return /** @type {import('./Feature.js').FeatureClassToFeature<FeatureClassType>} */ (
|
|
229
|
+
feature
|
|
230
|
+
);
|
|
233
231
|
}
|
|
234
232
|
|
|
235
233
|
/**
|
|
@@ -244,7 +242,7 @@ class MVT extends FeatureFormat {
|
|
|
244
242
|
*
|
|
245
243
|
* @param {ArrayBuffer} source Source.
|
|
246
244
|
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
247
|
-
* @return {Array<import('./Feature.js').FeatureClassToFeature<
|
|
245
|
+
* @return {Array<import('./Feature.js').FeatureClassToFeature<FeatureClassType>>} Features.
|
|
248
246
|
* @api
|
|
249
247
|
*/
|
|
250
248
|
readFeatures(source, options) {
|
|
@@ -275,7 +273,7 @@ class MVT extends FeatureFormat {
|
|
|
275
273
|
}
|
|
276
274
|
}
|
|
277
275
|
|
|
278
|
-
return /** @type {Array<import('./Feature.js').FeatureClassToFeature<
|
|
276
|
+
return /** @type {Array<import('./Feature.js').FeatureClassToFeature<FeatureClassType>>} */ (
|
|
279
277
|
features
|
|
280
278
|
);
|
|
281
279
|
}
|
package/format/TextFeature.d.ts
CHANGED
|
@@ -26,15 +26,6 @@ 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>;
|
|
38
29
|
/**
|
|
39
30
|
* @abstract
|
|
40
31
|
* @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;IAiBD;;;;;;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/TopoJSON.d.ts
CHANGED
|
@@ -94,13 +94,6 @@ declare class TopoJSON extends JSONFeature<typeof Feature> {
|
|
|
94
94
|
* @type {?Array<string>}
|
|
95
95
|
*/
|
|
96
96
|
private layers_;
|
|
97
|
-
/**
|
|
98
|
-
* @param {Object} object Object.
|
|
99
|
-
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
100
|
-
* @protected
|
|
101
|
-
* @return {Array<Feature>} Features.
|
|
102
|
-
*/
|
|
103
|
-
protected readFeaturesFromObject(object: any, options?: import("./Feature.js").ReadOptions | undefined): Array<Feature>;
|
|
104
97
|
}
|
|
105
98
|
import Feature from '../Feature.js';
|
|
106
99
|
import JSONFeature from './JSONFeature.js';
|
package/format/TopoJSON.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopoJSON.d.ts","sourceRoot":"","sources":["TopoJSON.js"],"names":[],"mappings":";+BAea,OAAO,wBAAwB,EAAE,QAAQ;yCACzC,OAAO,wBAAwB,EAAE,kBAAkB;+BACnD,OAAO,wBAAwB,EAAE,cAAc;4BAC/C,OAAO,wBAAwB,EAAE,KAAK;iCACtC,OAAO,wBAAwB,EAAE,UAAU;iCAC3C,OAAO,wBAAwB,EAAE,UAAU;sCAC3C,OAAO,wBAAwB,EAAE,eAAe;8BAChD,OAAO,wBAAwB,EAAE,OAAO;mCACxC,OAAO,wBAAwB,EAAE,YAAY;;;;;qBAK5C,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;AAdjD;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,2CAuBC;IAlBC;;;OAGG;IACH,mBAAmC;IAEnC;;;OAGG;IACH,gBAAqD;
|
|
1
|
+
{"version":3,"file":"TopoJSON.d.ts","sourceRoot":"","sources":["TopoJSON.js"],"names":[],"mappings":";+BAea,OAAO,wBAAwB,EAAE,QAAQ;yCACzC,OAAO,wBAAwB,EAAE,kBAAkB;+BACnD,OAAO,wBAAwB,EAAE,cAAc;4BAC/C,OAAO,wBAAwB,EAAE,KAAK;iCACtC,OAAO,wBAAwB,EAAE,UAAU;iCAC3C,OAAO,wBAAwB,EAAE,UAAU;sCAC3C,OAAO,wBAAwB,EAAE,eAAe;8BAChD,OAAO,wBAAwB,EAAE,OAAO;mCACxC,OAAO,wBAAwB,EAAE,YAAY;;;;;qBAK5C,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;AAdjD;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,2CAuBC;IAlBC;;;OAGG;IACH,mBAAmC;IAEnC;;;OAGG;IACH,gBAAqD;CAsFxD;oBA9JmB,eAAe;wBACX,kBAAkB"}
|
package/format/XMLFeature.d.ts
CHANGED
|
@@ -35,15 +35,6 @@ 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>;
|
|
47
38
|
/**
|
|
48
39
|
* @param {Document} doc Document.
|
|
49
40
|
* @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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H,2BA2BC;IAED;;;;;;OAMG;IACH,kBA8CC;IAED;;;OAGG;IACH,mCAQC;IAED;;;OAGG;IACH,wCAmBC;IAED;;;;OAIG;IACH,sBAgCC;IAED;;;;OAIG;IACH,uBAwCC;IAED;;;;;OAKG;IACH,sBAuCC;IAED;;OAEG;IACH,qBAFW,MAAM,QA8ChB;IAED;;;;OAIG;IACH,wBAEC;IAED;;;;;;OAMG;IACH,iBAHY,QAAQ,OAAO,2BAA2B,EAAE,OAAO,CAAC,GAAC,IAAI,CAgDpE;IAED;;;;OAIG;IACH,sBASC;IAED;;;OAGG;IACH,qBAKC;IAED;;;;;;;;OAQG;IACH,oDAmCC;IAED;;;;;;;;;;;OAWG;IACH,gBAHY,QAAQ,UAAU,CAAC,QAgB9B;IAED;;;OAGG;IACH,8BAcC;IAED;;OAEG;IACH,qBAOC;CACF;yBAxyDwB,qBAAqB;+BAHf,cAAc;wBAErB,oBAAoB;uBATrB,uBAAuB"}
|
package/interaction/Modify.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ export type Options = {
|
|
|
155
155
|
* the `pixelTolerance` from the pointer location. When a {@link module :ol/layer/BaseVector~BaseVectorLayer} is
|
|
156
156
|
* provided, only the rendered representation of the features on that layer will be considered.
|
|
157
157
|
*/
|
|
158
|
-
hitDetection?: boolean | import("../layer/BaseVector").default<any, any> | undefined;
|
|
158
|
+
hitDetection?: boolean | import("../layer/BaseVector").default<any, any, any> | undefined;
|
|
159
159
|
/**
|
|
160
160
|
* The features the interaction works on. If a feature collection is not
|
|
161
161
|
* provided, a vector source must be provided with the `source` option.
|
|
@@ -331,7 +331,7 @@ declare class Modify extends PointerInteraction {
|
|
|
331
331
|
/**
|
|
332
332
|
* @type {boolean|import("../layer/BaseVector").default}
|
|
333
333
|
*/
|
|
334
|
-
hitDetection_: boolean | import("../layer/BaseVector").default<any, any>;
|
|
334
|
+
hitDetection_: boolean | import("../layer/BaseVector").default<any, any, any>;
|
|
335
335
|
/**
|
|
336
336
|
* @type {Collection<Feature>}
|
|
337
337
|
* @private
|
|
@@ -384,7 +384,7 @@ declare class Modify extends PointerInteraction {
|
|
|
384
384
|
* @return {VectorLayer} Overlay layer.
|
|
385
385
|
* @api
|
|
386
386
|
*/
|
|
387
|
-
getOverlay(): VectorLayer
|
|
387
|
+
getOverlay(): VectorLayer;
|
|
388
388
|
/**
|
|
389
389
|
* @param {import("../source/Vector.js").VectorSourceEvent} event Event.
|
|
390
390
|
* @private
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modify.d.ts","sourceRoot":"","sources":["Modify.js"],"names":[],"mappings":"AAgFA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH;;;;GAIG;AACH;IACE;;;;;;OAMG;IACH,kBANW,eAAe,YACf,WAAW,OAAO,CAAC,iEAqB7B;IAbC;;;;OAIG;IACH,UAHU,WAAW,OAAO,CAAC,CAGL;IAExB;;;;OAIG;IACH,8DAAsC;CAEzC;;;;;;;;;;aAhFa,OAAO;;;;cACP,OAAO,2BAA2B,EAAE,OAAO;;;;;;;;aAE3C,MAAM,MAAM,MAAM,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAiFrB,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,GAC1E,eAAqB,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GAC/D,OAAW,eAAe,EAAE,WAAW,CAAC,WAAW,GAAC,aAAa,EAAE,WAAW,EAAE,MAAM,CAAC,GACvF,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,o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H,sBA8DC;IAED;;;;OAIG;IACH,eAHY,OAAO,CAyBlB;IAED;;;;OAIG;IACH,sBAiHC;IAED;;;;OAIG;IACH,gCAIC;IAED;;;;;;OAMG;IACH,8BAeC;CACF;yBAlgDwB,qBAAqB;+BAJf,cAAc;wBAGrB,oBAAoB"}
|
package/interaction/Select.d.ts
CHANGED
|
@@ -316,7 +316,7 @@ declare class Select extends Interaction {
|
|
|
316
316
|
* @return {import('../layer/Vector.js').default} Layer.
|
|
317
317
|
* @api
|
|
318
318
|
*/
|
|
319
|
-
getLayer(feature: import("../Feature.js").default):
|
|
319
|
+
getLayer(feature: import("../Feature.js").default): import('../layer/Vector.js').default;
|
|
320
320
|
/**
|
|
321
321
|
* Hit-detection tolerance. Pixels inside the radius around the given position
|
|
322
322
|
* will be checked for features.
|
|
@@ -357,5 +357,4 @@ declare class Select extends Interaction {
|
|
|
357
357
|
import Feature from '../Feature.js';
|
|
358
358
|
import Collection from '../Collection.js';
|
|
359
359
|
import Interaction from './Interaction.js';
|
|
360
|
-
import VectorLayer from '../layer/Vector.js';
|
|
361
360
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["Select.js"],"names":[],"mappings":"AA4BA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH;;;;GAIG;AACH;IACE;;;;;;OAMG;IACH,kBANW,eAAe,YACf,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,cACtC,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,iEA2BhD;IApBC;;;;OAIG;IACH,UAHU,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,CAGxB;IAExB;;;;OAIG;IACH,YAHU,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,CAGpB;IAE5B;;;;OAIG;IACH,8DAAsC;CAEzC;;;;;;oCAhGqB,OAAO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AAE,OAAO,CAO/C;IAED;;;;;OAKG;IACH,8BAHW,MAAM,QAKhB;IAuCD;;;OAGG;IACH,oBAuBC;IAED;;;OAGG;IACH,uBAIC;IAED;;OAEG;IACH,YAFY,OAAO,mBAAmB,EAAE,SAAS,GAAC,IAAI,CAIrD;IAED;;;OAGG;IACH,4BAMC;IAED;;;OAGG;IACH,8BAkBC;IAED;;;OAGG;IACH,uCAEC;CAmHF;oBArjBmB,eAAe;uBAHZ,kBAAkB;wBAIjB,kBAAkB"}
|
package/layer/BaseVector.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default BaseVectorLayer;
|
|
2
|
-
export type Options<VectorSourceType extends import("../source/Vector.js").default<
|
|
2
|
+
export type Options<FeatureType extends import("../Feature").FeatureLike, VectorSourceType extends import("../source/Vector.js").default<FeatureType> | import("../source/VectorTile.js").default<FeatureType>> = {
|
|
3
3
|
/**
|
|
4
4
|
* A CSS class name to set to the layer element.
|
|
5
5
|
*/
|
|
@@ -112,16 +112,17 @@ export type Options<VectorSourceType extends import("../source/Vector.js").defau
|
|
|
112
112
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
113
113
|
* options means that `title` is observable, and has get/set accessors.
|
|
114
114
|
*
|
|
115
|
-
* @template {import(
|
|
116
|
-
* @template {import("../
|
|
115
|
+
* @template {import('../Feature').FeatureLike} FeatureType
|
|
116
|
+
* @template {import("../source/Vector.js").default<FeatureType>|import("../source/VectorTile.js").default<FeatureType>} VectorSourceType<FeatureType>
|
|
117
117
|
* @extends {Layer<VectorSourceType, RendererType>}
|
|
118
|
+
* @template {import("../renderer/canvas/VectorLayer.js").default|import("../renderer/canvas/VectorTileLayer.js").default|import("../renderer/canvas/VectorImageLayer.js").default|import("../renderer/webgl/PointsLayer.js").default} RendererType
|
|
118
119
|
* @api
|
|
119
120
|
*/
|
|
120
|
-
declare class BaseVectorLayer<VectorSourceType extends import("../source/Vector.js").default<
|
|
121
|
+
declare class BaseVectorLayer<FeatureType extends import("../Feature").FeatureLike, VectorSourceType extends import("../source/Vector.js").default<FeatureType> | import("../source/VectorTile.js").default<FeatureType>, 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> {
|
|
121
122
|
/**
|
|
122
|
-
* @param {Options<VectorSourceType>} [options] Options.
|
|
123
|
+
* @param {Options<FeatureType, VectorSourceType>} [options] Options.
|
|
123
124
|
*/
|
|
124
|
-
constructor(options?: Options<VectorSourceType> | undefined);
|
|
125
|
+
constructor(options?: Options<FeatureType, VectorSourceType> | undefined);
|
|
125
126
|
/**
|
|
126
127
|
* @private
|
|
127
128
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseVector.d.ts","sourceRoot":"","sources":["BaseVector.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"BaseVector.d.ts","sourceRoot":"","sources":["BaseVector.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyEA;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH,0EAyDC;IA9CC;;;OAGG;IACH,mBAA2E;IAE3E;;;OAGG;IACH,sBACiE;IAEjE;;;;OAIG;IACH,eAAkB;IAElB;;;;OAIG;IACH,uBAA+B;IAI/B;;;OAGG;IACH,8BAGW;IAEX;;;OAGG;IACH,gCAGW;IA4Bb;;OAEG;IACH,mBAFY,MAAM,GAAC,SAAS,CAI3B;IAED;;;OAGG;IACH,yBAHqB,OAAO,eAAe,EAAE,OAAO,QAAE,OAAO,eAAe,EAAE,OAAO,KAAG,MAAM,GAAC,IAAI,GAAC,SAAS,CAO5G;IAED;;;;;OAKG;IACH,YAHY,OAAO,mBAAmB,EAAE,SAAS,GAAC,OAAO,kBAAkB,EAAE,aAAa,GAAC,IAAI,GAAC,SAAS,CAKxG;IAED;;;;OAIG;IACH,oBAHY,OAAO,mBAAmB,EAAE,aAAa,GAAC,SAAS,CAK9D;IAED;;;OAGG;IACH,2BAHY,OAAO,CAKlB;IAED;;;OAGG;IACH,6BAHY,OAAO,CAKlB;IAeD;;;OAGG;IACH,4BAHW,OAAO,cAAc,EAAE,aAAa,GAAC,IAAI,GAAC,SAAS,QAK7D;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,4HAMC;CACF;kBAhRiB,YAAY"}
|
package/layer/BaseVector.js
CHANGED
|
@@ -13,7 +13,8 @@ import {
|
|
|
13
13
|
} from '../render/canvas/style.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* @template {import(
|
|
16
|
+
* @template {import('../Feature').FeatureLike} FeatureType
|
|
17
|
+
* @template {import("../source/Vector.js").default<FeatureType>|import("../source/VectorTile.js").default<FeatureType>} VectorSourceType<FeatureType>
|
|
17
18
|
* @typedef {Object} Options
|
|
18
19
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
19
20
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
@@ -77,14 +78,15 @@ const Property = {
|
|
|
77
78
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
78
79
|
* options means that `title` is observable, and has get/set accessors.
|
|
79
80
|
*
|
|
80
|
-
* @template {import(
|
|
81
|
-
* @template {import("../
|
|
81
|
+
* @template {import('../Feature').FeatureLike} FeatureType
|
|
82
|
+
* @template {import("../source/Vector.js").default<FeatureType>|import("../source/VectorTile.js").default<FeatureType>} VectorSourceType<FeatureType>
|
|
82
83
|
* @extends {Layer<VectorSourceType, RendererType>}
|
|
84
|
+
* @template {import("../renderer/canvas/VectorLayer.js").default|import("../renderer/canvas/VectorTileLayer.js").default|import("../renderer/canvas/VectorImageLayer.js").default|import("../renderer/webgl/PointsLayer.js").default} RendererType
|
|
83
85
|
* @api
|
|
84
86
|
*/
|
|
85
87
|
class BaseVectorLayer extends Layer {
|
|
86
88
|
/**
|
|
87
|
-
* @param {Options<VectorSourceType>} [options] Options.
|
|
89
|
+
* @param {Options<FeatureType, VectorSourceType>} [options] Options.
|
|
88
90
|
*/
|
|
89
91
|
constructor(options) {
|
|
90
92
|
options = options ? options : {};
|
package/layer/Graticule.d.ts
CHANGED
|
@@ -274,10 +274,10 @@ export type Options = {
|
|
|
274
274
|
* Note that the view projection must define both extent and worldExtent.
|
|
275
275
|
*
|
|
276
276
|
* @fires import("../render/Event.js").RenderEvent
|
|
277
|
-
* @extends {VectorLayer<Feature
|
|
277
|
+
* @extends {VectorLayer<VectorSource<Feature>>}
|
|
278
278
|
* @api
|
|
279
279
|
*/
|
|
280
|
-
declare class Graticule extends VectorLayer<Feature<import("../geom.js").Geometry>> {
|
|
280
|
+
declare class Graticule extends VectorLayer<VectorSource<Feature<import("../geom.js").Geometry>>, Feature<import("../geom.js").Geometry>> {
|
|
281
281
|
/**
|
|
282
282
|
* @param {Options} [options] Options.
|
|
283
283
|
*/
|
|
@@ -587,6 +587,7 @@ import Point from '../geom/Point.js';
|
|
|
587
587
|
import Stroke from '../style/Stroke.js';
|
|
588
588
|
import Text from '../style/Text.js';
|
|
589
589
|
import Feature from '../Feature.js';
|
|
590
|
+
import VectorSource from '../source/Vector.js';
|
|
590
591
|
import VectorLayer from './Vector.js';
|
|
591
592
|
import LineString from '../geom/LineString.js';
|
|
592
593
|
//# sourceMappingURL=Graticule.d.ts.map
|
package/layer/Graticule.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Graticule.d.ts","sourceRoot":"","sources":["Graticule.js"],"names":[],"mappings":";;;;;UA2Ec,KAAK;;;;UACL,MAA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AIG;IACH,qBAAsB;IAEtB;;;OAGG;IACH,mBAEE;IAEF;;;OAGG;IACH,sBAAyB;IAEzB;;;OAGG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,4BAA+B;IAKjC;;;;;;OAMG;IACH,yBAJW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,GACL,MAAM,OAAO,cAAc,EAAE,MAAM,CAAC,CAoB/C;IAED;;;;;OAKG;IACH,uBAJW,OAAO,WAAW,EAAE,MAAM,cAC1B,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,QA4EjD;IAED;;;;;;;;;OASG;IACH,qBAuBC;IAED;;;;;;;;;OASG;IACH,qBAuBC;IAED;;;OAGG;IACH,oBAiFC;IAED;;;;;;OAMG;IACH,yBAsNC;IAED;;;;OAIG;IACH,qBA0BC;IAED;;;;;;;;OAQG;IACH,qBAiBC;IAED;;;;;;OAMG;IACH,0BAwBC;IAED;;;;OAIG;IACH,gBAHY,MAAM,UAAU,CAAC,CAK5B;IAED;;;;;;;;OAQG;IACH,qBAgBC;IAED;;;;;;OAMG;IACH,0BAwBC;IAED;;;;OAIG;IACH,gBAHY,MAAM,UAAU,CAAC,CAK5B;IAED;;;OAGG;IACH,8BA0EC;CACF;kBA/tCiB,kBAAkB;mBACjB,oBAAoB;iBAEtB,kBAAkB;oBANf,eAAe;yBAQV,qBAAqB;wBADtB,aAAa;uBALd,uBAAuB"}
|
package/layer/Graticule.js
CHANGED
|
@@ -178,7 +178,7 @@ const INTERVALS = [
|
|
|
178
178
|
* Note that the view projection must define both extent and worldExtent.
|
|
179
179
|
*
|
|
180
180
|
* @fires import("../render/Event.js").RenderEvent
|
|
181
|
-
* @extends {VectorLayer<Feature
|
|
181
|
+
* @extends {VectorLayer<VectorSource<Feature>>}
|
|
182
182
|
* @api
|
|
183
183
|
*/
|
|
184
184
|
class Graticule extends VectorLayer {
|
package/layer/Heatmap.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default Heatmap;
|
|
2
|
-
export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
2
|
+
export type Options<FeatureType extends import("../Feature.js").FeatureLike = import("../Feature.js").default<import("../geom.js").Geometry>, VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<FeatureType>> = {
|
|
3
3
|
/**
|
|
4
4
|
* A CSS class name to set to the layer element.
|
|
5
5
|
*/
|
|
@@ -66,7 +66,7 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
66
66
|
/**
|
|
67
67
|
* Point source.
|
|
68
68
|
*/
|
|
69
|
-
source?:
|
|
69
|
+
source?: VectorSourceType | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
|
|
72
72
|
*/
|
|
@@ -82,15 +82,16 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
82
82
|
* options means that `title` is observable, and has get/set accessors.
|
|
83
83
|
*
|
|
84
84
|
* @fires import("../render/Event.js").RenderEvent
|
|
85
|
-
* @template {import("../Feature.js").FeatureLike} FeatureType
|
|
86
|
-
* @
|
|
85
|
+
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
|
|
86
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<FeatureType>]
|
|
87
|
+
* @extends {BaseVector<FeatureType, VectorSourceType, WebGLPointsLayerRenderer>}
|
|
87
88
|
* @api
|
|
88
89
|
*/
|
|
89
|
-
declare class Heatmap<FeatureType extends import("../Feature.js").FeatureLike
|
|
90
|
+
declare class Heatmap<FeatureType extends import("../Feature.js").FeatureLike = import("../Feature.js").default<import("../geom.js").Geometry>, VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<FeatureType>> extends BaseVector<FeatureType, VectorSourceType, WebGLPointsLayerRenderer> {
|
|
90
91
|
/**
|
|
91
|
-
* @param {Options<FeatureType>} [options] Options.
|
|
92
|
+
* @param {Options<FeatureType, VectorSourceType>} [options] Options.
|
|
92
93
|
*/
|
|
93
|
-
constructor(options?: Options<FeatureType> | undefined);
|
|
94
|
+
constructor(options?: Options<FeatureType, VectorSourceType> | undefined);
|
|
94
95
|
/**
|
|
95
96
|
* @private
|
|
96
97
|
* @type {HTMLCanvasElement}
|
package/layer/Heatmap.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heatmap.d.ts","sourceRoot":"","sources":["Heatmap.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Heatmap.d.ts","sourceRoot":"","sources":["Heatmap.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAkC8B,OAAO,eAAe,EAAE,OAAO,KAAE,MAAM;;;;;;;;;;;;AAuBrE;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH,0EAqCC;IA1BC;;;OAGG;IACH,kBAAqB;IAYnB,uCAEC;IAUL;;;;;OAKG;IACH,WAJY,MAAM,CAMjB;IAED;;;;;OAKG;IACH,eAJY,MAAM,MAAM,CAAC,CAMxB;IAED;;;;;OAKG;IACH,aAJY,MAAM,CAMjB;IAED;;OAEG;IACH,+BAEC;IAED;;;;;OAKG;IACH,cAJW,MAAM,QAMhB;IAED;;;;;OAKG;IACH,oBAJW,MAAM,MAAM,CAAC,QAMvB;IAED;;;;;OAKG;IACH,kBAJW,MAAM,QAMhB;IAED,sBA2DC;IAED,wBAAoB;CACrB;qCA9OoC,kCAAkC;uBADhD,iBAAiB"}
|
package/layer/Heatmap.js
CHANGED
|
@@ -8,7 +8,8 @@ import {clamp} from '../math.js';
|
|
|
8
8
|
import {createCanvasContext2D} from '../dom.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* @template {import("../Feature.js").FeatureLike} FeatureType
|
|
11
|
+
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
|
|
12
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<FeatureType>]
|
|
12
13
|
* @typedef {Object} Options
|
|
13
14
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
14
15
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
@@ -34,7 +35,7 @@ import {createCanvasContext2D} from '../dom.js';
|
|
|
34
35
|
* @property {string|function(import("../Feature.js").default):number} [weight='weight'] The feature
|
|
35
36
|
* attribute to use for the weight or a function that returns a weight from a feature. Weight values
|
|
36
37
|
* should range from 0 to 1 (and values outside will be clamped to that range).
|
|
37
|
-
* @property {
|
|
38
|
+
* @property {VectorSourceType} [source] Point source.
|
|
38
39
|
* @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
|
|
39
40
|
*/
|
|
40
41
|
|
|
@@ -62,13 +63,14 @@ const DEFAULT_GRADIENT = ['#00f', '#0ff', '#0f0', '#ff0', '#f00'];
|
|
|
62
63
|
* options means that `title` is observable, and has get/set accessors.
|
|
63
64
|
*
|
|
64
65
|
* @fires import("../render/Event.js").RenderEvent
|
|
65
|
-
* @template {import("../Feature.js").FeatureLike} FeatureType
|
|
66
|
-
* @
|
|
66
|
+
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
|
|
67
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<FeatureType>]
|
|
68
|
+
* @extends {BaseVector<FeatureType, VectorSourceType, WebGLPointsLayerRenderer>}
|
|
67
69
|
* @api
|
|
68
70
|
*/
|
|
69
71
|
class Heatmap extends BaseVector {
|
|
70
72
|
/**
|
|
71
|
-
* @param {Options<FeatureType>} [options] Options.
|
|
73
|
+
* @param {Options<FeatureType, VectorSourceType>} [options] Options.
|
|
72
74
|
*/
|
|
73
75
|
constructor(options) {
|
|
74
76
|
options = options ? options : {};
|
package/layer/Tile.d.ts
CHANGED
|
@@ -7,11 +7,11 @@ export default TileLayer;
|
|
|
7
7
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
8
8
|
* options means that `title` is observable, and has get/set accessors.
|
|
9
9
|
*
|
|
10
|
-
* @template {import("../source/Tile.js").default} TileSourceType
|
|
10
|
+
* @template {import("../source/Tile.js").default} [TileSourceType=import("../source/Tile.js").default]
|
|
11
11
|
* @extends BaseTileLayer<TileSourceType, CanvasTileLayerRenderer>
|
|
12
12
|
* @api
|
|
13
13
|
*/
|
|
14
|
-
declare class TileLayer<TileSourceType extends import("../source/Tile.js").default> extends BaseTileLayer<TileSourceType, CanvasTileLayerRenderer<TileLayer<import("../source/Tile.js").default> | import("./VectorTile.js").default<any>>> {
|
|
14
|
+
declare class TileLayer<TileSourceType extends import("../source/Tile.js").default = import("../source/Tile.js").default> extends BaseTileLayer<TileSourceType, CanvasTileLayerRenderer<TileLayer<import("../source/Tile.js").default> | import("./VectorTile.js").default<import("../source.js").VectorTile<any>, any>>> {
|
|
15
15
|
/**
|
|
16
16
|
* @param {import("./BaseTile.js").Options<TileSourceType>} [options] Tile layer options.
|
|
17
17
|
*/
|
package/layer/Tile.js
CHANGED
|
@@ -12,7 +12,7 @@ import CanvasTileLayerRenderer from '../renderer/canvas/TileLayer.js';
|
|
|
12
12
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
13
13
|
* options means that `title` is observable, and has get/set accessors.
|
|
14
14
|
*
|
|
15
|
-
* @template {import("../source/Tile.js").default} TileSourceType
|
|
15
|
+
* @template {import("../source/Tile.js").default} [TileSourceType=import("../source/Tile.js").default]
|
|
16
16
|
* @extends BaseTileLayer<TileSourceType, CanvasTileLayerRenderer>
|
|
17
17
|
* @api
|
|
18
18
|
*/
|
package/layer/Vector.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export default VectorLayer;
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
export type ExtractedFeatureType<T> = T extends import("../source/Vector.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never;
|
|
6
|
+
export type Options<VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<any>, FeatureType extends import("../Feature.js").FeatureLike = ExtractedFeatureType<VectorSourceType>> = {
|
|
3
7
|
/**
|
|
4
8
|
* A CSS class name to set to the layer element.
|
|
5
9
|
*/
|
|
@@ -59,7 +63,7 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
59
63
|
/**
|
|
60
64
|
* Source.
|
|
61
65
|
*/
|
|
62
|
-
source?:
|
|
66
|
+
source?: VectorSourceType | undefined;
|
|
63
67
|
/**
|
|
64
68
|
* Sets the layer as overlay on a map. The map will not manage
|
|
65
69
|
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
@@ -105,8 +109,13 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
105
109
|
[x: string]: any;
|
|
106
110
|
} | undefined;
|
|
107
111
|
};
|
|
112
|
+
/***
|
|
113
|
+
* @template T
|
|
114
|
+
* @typedef {T extends import("../source/Vector.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never} ExtractedFeatureType
|
|
115
|
+
*/
|
|
108
116
|
/**
|
|
109
|
-
* @template {import(
|
|
117
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
118
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=ExtractedFeatureType<VectorSourceType>]
|
|
110
119
|
* @typedef {Object} Options
|
|
111
120
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
112
121
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
@@ -131,7 +140,7 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
131
140
|
* @property {number} [renderBuffer=100] The buffer in pixels around the viewport extent used by the
|
|
132
141
|
* renderer when getting features from the vector source for the rendering or hit-detection.
|
|
133
142
|
* Recommended value: the size of the largest symbol, line width or label.
|
|
134
|
-
* @property {
|
|
143
|
+
* @property {VectorSourceType} [source] Source.
|
|
135
144
|
* @property {import("../Map.js").default} [map] Sets the layer as overlay on a map. The map will not manage
|
|
136
145
|
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
137
146
|
* temporary layers. The standard way to add a layer to a map and have it managed by the map is to
|
|
@@ -165,15 +174,16 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
165
174
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
166
175
|
* options means that `title` is observable, and has get/set accessors.
|
|
167
176
|
*
|
|
168
|
-
* @template {import(
|
|
169
|
-
* @
|
|
177
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
178
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=ExtractedFeatureType<VectorSourceType>]
|
|
179
|
+
* @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer>}
|
|
170
180
|
* @api
|
|
171
181
|
*/
|
|
172
|
-
declare class VectorLayer<
|
|
182
|
+
declare class VectorLayer<VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<any>, FeatureType extends import("../Feature.js").FeatureLike = ExtractedFeatureType<VectorSourceType>> extends BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer> {
|
|
173
183
|
/**
|
|
174
|
-
* @param {Options<FeatureType>} [options] Options.
|
|
184
|
+
* @param {Options<VectorSourceType, FeatureType>} [options] Options.
|
|
175
185
|
*/
|
|
176
|
-
constructor(options?: Options<FeatureType> | undefined);
|
|
186
|
+
constructor(options?: Options<VectorSourceType, FeatureType> | undefined);
|
|
177
187
|
}
|
|
178
188
|
import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';
|
|
179
189
|
import BaseVectorLayer from './BaseVector.js';
|
package/layer/Vector.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["Vector.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["Vector.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH;;;;;;;;;;;;;;;GAeG;AACH;IACE;;OAEG;IACH,0EAEC;CAKF;sCArFqC,mCAAmC;4BAD7C,iBAAiB"}
|
package/layer/Vector.js
CHANGED
|
@@ -4,8 +4,14 @@
|
|
|
4
4
|
import BaseVectorLayer from './BaseVector.js';
|
|
5
5
|
import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';
|
|
6
6
|
|
|
7
|
+
/***
|
|
8
|
+
* @template T
|
|
9
|
+
* @typedef {T extends import("../source/Vector.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never} ExtractedFeatureType
|
|
10
|
+
*/
|
|
11
|
+
|
|
7
12
|
/**
|
|
8
|
-
* @template {import(
|
|
13
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
14
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=ExtractedFeatureType<VectorSourceType>]
|
|
9
15
|
* @typedef {Object} Options
|
|
10
16
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
11
17
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
@@ -30,7 +36,7 @@ import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';
|
|
|
30
36
|
* @property {number} [renderBuffer=100] The buffer in pixels around the viewport extent used by the
|
|
31
37
|
* renderer when getting features from the vector source for the rendering or hit-detection.
|
|
32
38
|
* Recommended value: the size of the largest symbol, line width or label.
|
|
33
|
-
* @property {
|
|
39
|
+
* @property {VectorSourceType} [source] Source.
|
|
34
40
|
* @property {import("../Map.js").default} [map] Sets the layer as overlay on a map. The map will not manage
|
|
35
41
|
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
36
42
|
* temporary layers. The standard way to add a layer to a map and have it managed by the map is to
|
|
@@ -65,13 +71,14 @@ import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';
|
|
|
65
71
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
66
72
|
* options means that `title` is observable, and has get/set accessors.
|
|
67
73
|
*
|
|
68
|
-
* @template {import(
|
|
69
|
-
* @
|
|
74
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
75
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=ExtractedFeatureType<VectorSourceType>]
|
|
76
|
+
* @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer>}
|
|
70
77
|
* @api
|
|
71
78
|
*/
|
|
72
79
|
class VectorLayer extends BaseVectorLayer {
|
|
73
80
|
/**
|
|
74
|
-
* @param {Options<FeatureType>} [options] Options.
|
|
81
|
+
* @param {Options<VectorSourceType, FeatureType>} [options] Options.
|
|
75
82
|
*/
|
|
76
83
|
constructor(options) {
|
|
77
84
|
super(options);
|