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.
Files changed (77) hide show
  1. package/VectorRenderTile.d.ts +3 -3
  2. package/VectorRenderTile.d.ts.map +1 -1
  3. package/VectorTile.d.ts +19 -16
  4. package/VectorTile.d.ts.map +1 -1
  5. package/VectorTile.js +12 -9
  6. package/dist/ol.js +2 -2
  7. package/dist/ol.js.map +1 -1
  8. package/expr/expression.js +2 -2
  9. package/featureloader.d.ts +8 -8
  10. package/featureloader.d.ts.map +1 -1
  11. package/featureloader.js +5 -5
  12. package/format/EsriJSON.d.ts +0 -7
  13. package/format/EsriJSON.d.ts.map +1 -1
  14. package/format/Feature.d.ts +10 -10
  15. package/format/Feature.d.ts.map +1 -1
  16. package/format/Feature.js +6 -6
  17. package/format/GeoJSON.d.ts +9 -9
  18. package/format/GeoJSON.d.ts.map +1 -1
  19. package/format/GeoJSON.js +22 -17
  20. package/format/JSONFeature.d.ts +7 -27
  21. package/format/JSONFeature.d.ts.map +1 -1
  22. package/format/JSONFeature.js +10 -12
  23. package/format/MVT.d.ts +12 -12
  24. package/format/MVT.d.ts.map +1 -1
  25. package/format/MVT.js +16 -18
  26. package/format/TextFeature.d.ts +0 -9
  27. package/format/TextFeature.d.ts.map +1 -1
  28. package/format/TopoJSON.d.ts +0 -7
  29. package/format/TopoJSON.d.ts.map +1 -1
  30. package/format/XMLFeature.d.ts +0 -9
  31. package/format/XMLFeature.d.ts.map +1 -1
  32. package/interaction/Draw.d.ts +1 -1
  33. package/interaction/Draw.d.ts.map +1 -1
  34. package/interaction/Modify.d.ts +3 -3
  35. package/interaction/Modify.d.ts.map +1 -1
  36. package/interaction/Select.d.ts +1 -2
  37. package/interaction/Select.d.ts.map +1 -1
  38. package/layer/BaseVector.d.ts +7 -6
  39. package/layer/BaseVector.d.ts.map +1 -1
  40. package/layer/BaseVector.js +6 -4
  41. package/layer/Graticule.d.ts +3 -2
  42. package/layer/Graticule.d.ts.map +1 -1
  43. package/layer/Graticule.js +1 -1
  44. package/layer/Heatmap.d.ts +8 -7
  45. package/layer/Heatmap.d.ts.map +1 -1
  46. package/layer/Heatmap.js +7 -5
  47. package/layer/Tile.d.ts +2 -2
  48. package/layer/Tile.js +1 -1
  49. package/layer/Vector.d.ts +11 -9
  50. package/layer/Vector.d.ts.map +1 -1
  51. package/layer/Vector.js +7 -5
  52. package/layer/VectorImage.d.ts +9 -7
  53. package/layer/VectorImage.d.ts.map +1 -1
  54. package/layer/VectorImage.js +6 -4
  55. package/layer/VectorTile.d.ts +11 -9
  56. package/layer/VectorTile.d.ts.map +1 -1
  57. package/layer/VectorTile.js +11 -9
  58. package/package.json +1 -1
  59. package/renderer/canvas/TileLayer.d.ts +2 -2
  60. package/renderer/canvas/TileLayer.js +1 -1
  61. package/renderer/canvas/VectorImageLayer.d.ts +1 -1
  62. package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
  63. package/renderer/canvas/VectorLayer.d.ts +1 -1
  64. package/renderer/canvas/VectorLayer.d.ts.map +1 -1
  65. package/renderer/canvas/VectorTileLayer.d.ts +3 -3
  66. package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
  67. package/renderer/canvas/VectorTileLayer.js +1 -1
  68. package/source/OGCVectorTile.d.ts +7 -7
  69. package/source/OGCVectorTile.d.ts.map +1 -1
  70. package/source/OGCVectorTile.js +3 -3
  71. package/source/Vector.d.ts +14 -14
  72. package/source/Vector.d.ts.map +1 -1
  73. package/source/Vector.js +10 -10
  74. package/source/VectorTile.d.ts +8 -7
  75. package/source/VectorTile.d.ts.map +1 -1
  76. package/source/VectorTile.js +3 -2
  77. 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} [FeatureClass=import("../Feature.js").default]
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 {FeatureClass} [feature] Feature.
43
- * @param {Array<FeatureClass>} [features] Features.
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 {FeatureClass|undefined}
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<FeatureClass>|undefined}
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('../format/Feature.js').FeatureToFeatureClass<FeatureType>>|undefined}
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('../format/Feature.js').FeatureToFeatureClass<FeatureType>>|undefined} The feature format.
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() {
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * Sets the loader for a tile.
3
- * @param {import("../VectorTile.js").default} tile Vector tile.
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(tile: import("../VectorTile.js").default, url: string): void;
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 import("../VectorTile.js").default;
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<import("../VectorTile").default>;
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;;;;GAIG;AACH,0CAHW,OAAO,kBAAkB,EAAE,OAAO,OAClC,MAAM,QAqBhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAhea,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAZjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;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;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"}
@@ -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
- * @param {import("../VectorTile.js").default} tile Vector tile.
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
@@ -33,4 +33,4 @@ export function getUid(obj) {
33
33
  * OpenLayers version.
34
34
  * @type {string}
35
35
  */
36
- export const VERSION = '9.2.5-dev.1716917419876';
36
+ export const VERSION = '9.2.5-dev.1717182609649';