ol 9.2.5-dev.1716917419876 → 9.2.5-dev.1717182609649
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/expr/expression.js +2 -2
- 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 +11 -9
- package/layer/Vector.d.ts.map +1 -1
- package/layer/Vector.js +7 -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 +11 -9
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/VectorTile.js +11 -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/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/source/Vector.js
CHANGED
|
@@ -34,27 +34,27 @@ import {xhr} from '../featureloader.js';
|
|
|
34
34
|
* @classdesc
|
|
35
35
|
* Events emitted by {@link module:ol/source/Vector~VectorSource} instances are instances of this
|
|
36
36
|
* type.
|
|
37
|
-
* @template {import("../Feature.js").FeatureLike} [
|
|
37
|
+
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
|
|
38
38
|
*/
|
|
39
39
|
export class VectorSourceEvent extends Event {
|
|
40
40
|
/**
|
|
41
41
|
* @param {string} type Type.
|
|
42
|
-
* @param {
|
|
43
|
-
* @param {Array<
|
|
42
|
+
* @param {FeatureType} [feature] Feature.
|
|
43
|
+
* @param {Array<FeatureType>} [features] Features.
|
|
44
44
|
*/
|
|
45
45
|
constructor(type, feature, features) {
|
|
46
46
|
super(type);
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* The added or removed feature for the `ADDFEATURE` and `REMOVEFEATURE` events, `undefined` otherwise.
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {FeatureType|undefined}
|
|
51
51
|
* @api
|
|
52
52
|
*/
|
|
53
53
|
this.feature = feature;
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* The loaded features for the `FEATURESLOADED` event, `undefined` otherwise.
|
|
57
|
-
* @type {Array<
|
|
57
|
+
* @type {Array<FeatureType>|undefined}
|
|
58
58
|
* @api
|
|
59
59
|
*/
|
|
60
60
|
this.features = features;
|
|
@@ -77,7 +77,7 @@ export class VectorSourceEvent extends Event {
|
|
|
77
77
|
*/
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* @template {import("../Feature.js").FeatureLike} FeatureType
|
|
80
|
+
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
|
|
81
81
|
* @typedef {Object} Options
|
|
82
82
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
83
83
|
* @property {Array<FeatureType>|Collection<FeatureType>} [features]
|
|
@@ -217,9 +217,9 @@ class VectorSource extends Source {
|
|
|
217
217
|
|
|
218
218
|
/**
|
|
219
219
|
* @private
|
|
220
|
-
* @type {import("../format/Feature.js").default<import(
|
|
220
|
+
* @type {import("../format/Feature.js").default<import("../format/Feature.js").FeatureToFeatureClass<FeatureType>>|null}
|
|
221
221
|
*/
|
|
222
|
-
this.format_ = options.format;
|
|
222
|
+
this.format_ = options.format || null;
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
225
|
* @private
|
|
@@ -448,7 +448,7 @@ class VectorSource extends Source {
|
|
|
448
448
|
const extents = [];
|
|
449
449
|
/** @type {Array<FeatureType>} */
|
|
450
450
|
const newFeatures = [];
|
|
451
|
-
/** @type Array<FeatureType> */
|
|
451
|
+
/** @type {Array<FeatureType>} */
|
|
452
452
|
const geometryFeatures = [];
|
|
453
453
|
|
|
454
454
|
for (let i = 0, length = features.length; i < length; i++) {
|
|
@@ -889,7 +889,7 @@ class VectorSource extends Source {
|
|
|
889
889
|
/**
|
|
890
890
|
* Get the format associated with this source.
|
|
891
891
|
*
|
|
892
|
-
* @return {import("../format/Feature.js").default<import(
|
|
892
|
+
* @return {import("../format/Feature.js").default<import("../format/Feature.js").FeatureToFeatureClass<FeatureType>>|null}} The feature format.
|
|
893
893
|
* @api
|
|
894
894
|
*/
|
|
895
895
|
getFormat() {
|
package/source/VectorTile.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Sets the loader for a tile.
|
|
3
|
-
* @
|
|
3
|
+
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../render/Feature.js").default]
|
|
4
|
+
* @param {import("../VectorTile.js").default<FeatureType>} tile Vector tile.
|
|
4
5
|
* @param {string} url URL.
|
|
5
6
|
*/
|
|
6
|
-
export function defaultLoadFunction(
|
|
7
|
+
export function defaultLoadFunction<FeatureType extends import("../Feature.js").FeatureLike = import("../render/Feature.js").default>(tile: Tile<FeatureType>, url: string): void;
|
|
7
8
|
export default VectorTile;
|
|
8
|
-
export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
9
|
+
export type Options<FeatureType extends import("../Feature.js").FeatureLike = import("../render/Feature.js").default> = {
|
|
9
10
|
/**
|
|
10
11
|
* Attributions.
|
|
11
12
|
*/
|
|
@@ -129,8 +130,9 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
129
130
|
*/
|
|
130
131
|
zDirection?: number | import("../array.js").NearestDirectionFunction | undefined;
|
|
131
132
|
};
|
|
133
|
+
import Tile from '../VectorTile.js';
|
|
132
134
|
/**
|
|
133
|
-
* @template {import("../Feature.js").FeatureLike} FeatureType
|
|
135
|
+
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../render/Feature.js").default]
|
|
134
136
|
* @typedef {Object} Options
|
|
135
137
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
136
138
|
* @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
|
|
@@ -232,7 +234,7 @@ declare class VectorTile<FeatureType extends import("../Feature.js").FeatureLike
|
|
|
232
234
|
* @protected
|
|
233
235
|
* @type {typeof import("../VectorTile.js").default}
|
|
234
236
|
*/
|
|
235
|
-
protected tileClass: typeof
|
|
237
|
+
protected tileClass: typeof Tile;
|
|
236
238
|
/**
|
|
237
239
|
* @private
|
|
238
240
|
* @type {Object<string, import("../tilegrid/TileGrid.js").default>}
|
|
@@ -261,7 +263,7 @@ declare class VectorTile<FeatureType extends import("../Feature.js").FeatureLike
|
|
|
261
263
|
* @param {VectorRenderTile} tile Vector image tile.
|
|
262
264
|
* @return {Array<import("../VectorTile").default>} Tile keys.
|
|
263
265
|
*/
|
|
264
|
-
getSourceTiles(pixelRatio: number, projection: import("../proj/Projection").default, tile: VectorRenderTile): Array<
|
|
266
|
+
getSourceTiles(pixelRatio: number, projection: import("../proj/Projection").default, tile: VectorRenderTile): Array<Tile<any>>;
|
|
265
267
|
/**
|
|
266
268
|
* @param {number} z Tile coordinate z.
|
|
267
269
|
* @param {number} x Tile coordinate x.
|
|
@@ -272,7 +274,6 @@ declare class VectorTile<FeatureType extends import("../Feature.js").FeatureLike
|
|
|
272
274
|
*/
|
|
273
275
|
getTile(z: number, x: number, y: number, pixelRatio: number, projection: import("../proj/Projection.js").default): VectorRenderTile;
|
|
274
276
|
}
|
|
275
|
-
import Tile from '../VectorTile.js';
|
|
276
277
|
import TileGrid from '../tilegrid/TileGrid.js';
|
|
277
278
|
import UrlTile from './UrlTile.js';
|
|
278
279
|
import VectorRenderTile from '../VectorRenderTile.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorTile.d.ts","sourceRoot":"","sources":["VectorTile.js"],"names":[],"mappings":"AA2eA
|
|
1
|
+
{"version":3,"file":"VectorTile.d.ts","sourceRoot":"","sources":["VectorTile.js"],"names":[],"mappings":"AA2eA;;;;;GAKG;AACH,oKAFW,MAAM,QAqBhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAjea,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA9BhC,kBAAkB;AAkBnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AAEH;;;;;;;;;;;;;GAaG;AACH;IACE;;OAEG;IACH,qBAFY,QAAQ,WAAW,CAAC,EAkE/B;IA7BC;;;OAGG;IACH,gBAAqD;IAErD;;;OAGG;IACH,wBAAkE;IAElE;;;OAGG;IACH,kBAAwE;IAExE;;;OAGG;IACH,iCAA6D;IAE7D;;;OAGG;IACH,mBAAoB;IAGtB;;;;;;;;;;;OAWG;IACH,4BAJW,OAAO,cAAc,EAAE,MAAM,GAC5B,MAAM,WAAW,CAAC,CAkC7B;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAgCD;;;;;OAKG;IACH,2BALW,MAAM,cACN,OAAO,oBAAoB,EAAE,OAAO,QACpC,gBAAgB,GACf,gBAAsC,CA4FjD;IAED;;;;;;;OAOG;IACH,WAPW,MAAM,KACN,MAAM,KACN,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACrC,gBAAgB,CAyD5B;CAuEF;qBAheoB,yBAAyB;oBAE1B,cAAc;6BACL,wBAAwB"}
|
package/source/VectorTile.js
CHANGED
|
@@ -22,7 +22,7 @@ import {loadFeaturesXhr} from '../featureloader.js';
|
|
|
22
22
|
import {toSize} from '../size.js';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* @template {import("../Feature.js").FeatureLike} FeatureType
|
|
25
|
+
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../render/Feature.js").default]
|
|
26
26
|
* @typedef {Object} Options
|
|
27
27
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
28
28
|
* @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
|
|
@@ -491,7 +491,8 @@ export default VectorTile;
|
|
|
491
491
|
|
|
492
492
|
/**
|
|
493
493
|
* Sets the loader for a tile.
|
|
494
|
-
* @
|
|
494
|
+
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../render/Feature.js").default]
|
|
495
|
+
* @param {import("../VectorTile.js").default<FeatureType>} tile Vector tile.
|
|
495
496
|
* @param {string} url URL.
|
|
496
497
|
*/
|
|
497
498
|
export function defaultLoadFunction(tile, url) {
|
package/util.js
CHANGED