ol 9.2.5-dev.1717010067861 → 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 (76) 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/featureloader.d.ts +8 -8
  9. package/featureloader.d.ts.map +1 -1
  10. package/featureloader.js +5 -5
  11. package/format/EsriJSON.d.ts +0 -7
  12. package/format/EsriJSON.d.ts.map +1 -1
  13. package/format/Feature.d.ts +10 -10
  14. package/format/Feature.d.ts.map +1 -1
  15. package/format/Feature.js +6 -6
  16. package/format/GeoJSON.d.ts +9 -9
  17. package/format/GeoJSON.d.ts.map +1 -1
  18. package/format/GeoJSON.js +22 -17
  19. package/format/JSONFeature.d.ts +7 -27
  20. package/format/JSONFeature.d.ts.map +1 -1
  21. package/format/JSONFeature.js +10 -12
  22. package/format/MVT.d.ts +12 -12
  23. package/format/MVT.d.ts.map +1 -1
  24. package/format/MVT.js +16 -18
  25. package/format/TextFeature.d.ts +0 -9
  26. package/format/TextFeature.d.ts.map +1 -1
  27. package/format/TopoJSON.d.ts +0 -7
  28. package/format/TopoJSON.d.ts.map +1 -1
  29. package/format/XMLFeature.d.ts +0 -9
  30. package/format/XMLFeature.d.ts.map +1 -1
  31. package/interaction/Draw.d.ts +1 -1
  32. package/interaction/Draw.d.ts.map +1 -1
  33. package/interaction/Modify.d.ts +3 -3
  34. package/interaction/Modify.d.ts.map +1 -1
  35. package/interaction/Select.d.ts +1 -2
  36. package/interaction/Select.d.ts.map +1 -1
  37. package/layer/BaseVector.d.ts +7 -6
  38. package/layer/BaseVector.d.ts.map +1 -1
  39. package/layer/BaseVector.js +6 -4
  40. package/layer/Graticule.d.ts +3 -2
  41. package/layer/Graticule.d.ts.map +1 -1
  42. package/layer/Graticule.js +1 -1
  43. package/layer/Heatmap.d.ts +8 -7
  44. package/layer/Heatmap.d.ts.map +1 -1
  45. package/layer/Heatmap.js +7 -5
  46. package/layer/Tile.d.ts +2 -2
  47. package/layer/Tile.js +1 -1
  48. package/layer/Vector.d.ts +11 -9
  49. package/layer/Vector.d.ts.map +1 -1
  50. package/layer/Vector.js +7 -5
  51. package/layer/VectorImage.d.ts +9 -7
  52. package/layer/VectorImage.d.ts.map +1 -1
  53. package/layer/VectorImage.js +6 -4
  54. package/layer/VectorTile.d.ts +11 -9
  55. package/layer/VectorTile.d.ts.map +1 -1
  56. package/layer/VectorTile.js +11 -9
  57. package/package.json +1 -1
  58. package/renderer/canvas/TileLayer.d.ts +2 -2
  59. package/renderer/canvas/TileLayer.js +1 -1
  60. package/renderer/canvas/VectorImageLayer.d.ts +1 -1
  61. package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
  62. package/renderer/canvas/VectorLayer.d.ts +1 -1
  63. package/renderer/canvas/VectorLayer.d.ts.map +1 -1
  64. package/renderer/canvas/VectorTileLayer.d.ts +3 -3
  65. package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
  66. package/renderer/canvas/VectorTileLayer.js +1 -1
  67. package/source/OGCVectorTile.d.ts +7 -7
  68. package/source/OGCVectorTile.d.ts.map +1 -1
  69. package/source/OGCVectorTile.js +3 -3
  70. package/source/Vector.d.ts +14 -14
  71. package/source/Vector.d.ts.map +1 -1
  72. package/source/Vector.js +10 -10
  73. package/source/VectorTile.d.ts +8 -7
  74. package/source/VectorTile.d.ts.map +1 -1
  75. package/source/VectorTile.js +3 -2
  76. package/util.js +1 -1
@@ -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;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,qBAFU,cAAc,kBAAkB,EAAE,OAAO,CAEU;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,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,CA4FjD;IAED;;;;;;;OAOG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 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.1717010067861';
36
+ export const VERSION = '9.2.5-dev.1717182609649';