ol 9.2.5-dev.1717260235384 → 9.2.5-sh.1

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 (85) hide show
  1. package/VectorRenderTile.d.ts +3 -3
  2. package/VectorRenderTile.d.ts.map +1 -1
  3. package/VectorTile.d.ts +16 -19
  4. package/VectorTile.d.ts.map +1 -1
  5. package/VectorTile.js +9 -12
  6. package/dist/ol.d.ts +2 -0
  7. package/dist/ol.d.ts.map +1 -1
  8. package/dist/ol.js +2 -2
  9. package/dist/ol.js.map +1 -1
  10. package/featureloader.d.ts +8 -8
  11. package/featureloader.d.ts.map +1 -1
  12. package/featureloader.js +5 -5
  13. package/format/EsriJSON.d.ts +7 -0
  14. package/format/EsriJSON.d.ts.map +1 -1
  15. package/format/Feature.d.ts +10 -10
  16. package/format/Feature.d.ts.map +1 -1
  17. package/format/Feature.js +6 -6
  18. package/format/GeoJSON.d.ts +9 -9
  19. package/format/GeoJSON.d.ts.map +1 -1
  20. package/format/GeoJSON.js +17 -22
  21. package/format/JSONFeature.d.ts +27 -7
  22. package/format/JSONFeature.d.ts.map +1 -1
  23. package/format/JSONFeature.js +12 -10
  24. package/format/MVT.d.ts +12 -12
  25. package/format/MVT.d.ts.map +1 -1
  26. package/format/MVT.js +18 -16
  27. package/format/TextFeature.d.ts +9 -0
  28. package/format/TextFeature.d.ts.map +1 -1
  29. package/format/TopoJSON.d.ts +7 -0
  30. package/format/TopoJSON.d.ts.map +1 -1
  31. package/format/XMLFeature.d.ts +9 -0
  32. package/format/XMLFeature.d.ts.map +1 -1
  33. package/interaction/Draw.d.ts +1 -1
  34. package/interaction/Draw.d.ts.map +1 -1
  35. package/interaction/Modify.d.ts +3 -3
  36. package/interaction/Modify.d.ts.map +1 -1
  37. package/interaction/Select.d.ts +2 -1
  38. package/interaction/Select.d.ts.map +1 -1
  39. package/layer/BaseVector.d.ts +6 -7
  40. package/layer/BaseVector.d.ts.map +1 -1
  41. package/layer/BaseVector.js +4 -6
  42. package/layer/Graticule.d.ts +2 -3
  43. package/layer/Graticule.d.ts.map +1 -1
  44. package/layer/Graticule.js +1 -1
  45. package/layer/Heatmap.d.ts +7 -8
  46. package/layer/Heatmap.d.ts.map +1 -1
  47. package/layer/Heatmap.js +5 -7
  48. package/layer/Tile.d.ts +2 -2
  49. package/layer/Tile.js +1 -1
  50. package/layer/Vector.d.ts +9 -19
  51. package/layer/Vector.d.ts.map +1 -1
  52. package/layer/Vector.js +5 -12
  53. package/layer/VectorImage.d.ts +7 -9
  54. package/layer/VectorImage.d.ts.map +1 -1
  55. package/layer/VectorImage.js +4 -6
  56. package/layer/VectorTile.d.ts +9 -19
  57. package/layer/VectorTile.d.ts.map +1 -1
  58. package/layer/VectorTile.js +9 -16
  59. package/package.json +1 -1
  60. package/renderer/canvas/TileLayer.d.ts +2 -2
  61. package/renderer/canvas/TileLayer.js +1 -1
  62. package/renderer/canvas/VectorImageLayer.d.ts +1 -1
  63. package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
  64. package/renderer/canvas/VectorLayer.d.ts +1 -1
  65. package/renderer/canvas/VectorLayer.d.ts.map +1 -1
  66. package/renderer/canvas/VectorTileLayer.d.ts +3 -3
  67. package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
  68. package/renderer/canvas/VectorTileLayer.js +1 -1
  69. package/renderer/webgl/TileLayerBase.d.ts +6 -1
  70. package/renderer/webgl/TileLayerBase.d.ts.map +1 -1
  71. package/renderer/webgl/TileLayerBase.js +6 -1
  72. package/source/OGCVectorTile.d.ts +7 -7
  73. package/source/OGCVectorTile.d.ts.map +1 -1
  74. package/source/OGCVectorTile.js +3 -3
  75. package/source/SentinelHub.d.ts +507 -0
  76. package/source/SentinelHub.d.ts.map +1 -0
  77. package/source/SentinelHub.js +616 -0
  78. package/source/Vector.d.ts +14 -14
  79. package/source/Vector.d.ts.map +1 -1
  80. package/source/Vector.js +10 -10
  81. package/source/VectorTile.d.ts +7 -8
  82. package/source/VectorTile.d.ts.map +1 -1
  83. package/source/VectorTile.js +2 -3
  84. package/util.d.ts.map +1 -1
  85. package/util.js +1 -1
@@ -1,5 +1,5 @@
1
1
  export default VectorImageLayer;
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>> = {
2
+ export type Options<VectorSourceType extends import("../source/Vector.js").default<import("../Feature.js").default<import("../geom.js").Geometry>>> = {
3
3
  /**
4
4
  * A CSS class name to set to the layer element.
5
5
  */
@@ -99,8 +99,7 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike = im
99
99
  } | undefined;
100
100
  };
101
101
  /**
102
- * @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
103
- * @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<FeatureType>]
102
+ * @template {import("../source/Vector.js").default} VectorSourceType
104
103
  * @typedef {Object} Options
105
104
  * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
106
105
  * @property {number} [opacity=1] Opacity (0, 1).
@@ -155,16 +154,15 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike = im
155
154
  * property on the layer object; for example, setting `title: 'My Title'` in the
156
155
  * options means that `title` is observable, and has get/set accessors.
157
156
  *
158
- * @template {import("../Feature.js").default} [FeatureType=import("../Feature.js").default]
159
- * @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<FeatureType>]
160
- * @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorImageLayerRenderer>}
157
+ * @template {import("../Feature.js").default} FeatureType
158
+ * @extends {BaseVectorLayer<import("../source/Vector.js").default<FeatureType>, CanvasVectorImageLayerRenderer>}
161
159
  * @api
162
160
  */
163
- declare class VectorImageLayer<FeatureType extends import("../Feature.js").default<import("../geom.js").Geometry> = import("../Feature.js").default<import("../geom.js").Geometry>, VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<FeatureType>> extends BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorImageLayerRenderer> {
161
+ declare class VectorImageLayer<FeatureType extends import("../Feature.js").default<import("../geom.js").Geometry>> extends BaseVectorLayer<import("../source/Vector.js").default<FeatureType>, CanvasVectorImageLayerRenderer> {
164
162
  /**
165
- * @param {Options<FeatureType, VectorSourceType>} [options] Options.
163
+ * @param {Options<import("../source/Vector.js").default<FeatureType>>} [options] Options.
166
164
  */
167
- constructor(options?: Options<FeatureType, VectorSourceType> | undefined);
165
+ constructor(options?: Options<import("../source/Vector.js").default<FeatureType>> | undefined);
168
166
  /**
169
167
  * @type {number}
170
168
  * @private
@@ -1 +1 @@
1
- {"version":3,"file":"VectorImage.d.ts","sourceRoot":"","sources":["VectorImage.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH;;;;;;;;;;;;;;;GAeG;AACH;IACE;;OAEG;IACH,0EAaC;IANC;;;OAGG;IACH,oBAC2D;IAG7D;;OAEG;IACH,iBAFY,MAAM,CAIjB;CAKF;2CA9F0C,wCAAwC;4BADvD,iBAAiB"}
1
+ {"version":3,"file":"VectorImage.d.ts","sourceRoot":"","sources":["VectorImage.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH;;;;;;;;;;;;;;GAcG;AACH;IACE;;OAEG;IACH,+FAaC;IANC;;;OAGG;IACH,oBAC2D;IAG7D;;OAEG;IACH,iBAFY,MAAM,CAIjB;CAKF;2CA5F0C,wCAAwC;4BADvD,iBAAiB"}
@@ -5,8 +5,7 @@ import BaseVectorLayer from './BaseVector.js';
5
5
  import CanvasVectorImageLayerRenderer from '../renderer/canvas/VectorImageLayer.js';
6
6
 
7
7
  /**
8
- * @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
9
- * @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<FeatureType>]
8
+ * @template {import("../source/Vector.js").default} VectorSourceType
10
9
  * @typedef {Object} Options
11
10
  * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
12
11
  * @property {number} [opacity=1] Opacity (0, 1).
@@ -62,14 +61,13 @@ import CanvasVectorImageLayerRenderer from '../renderer/canvas/VectorImageLayer.
62
61
  * property on the layer object; for example, setting `title: 'My Title'` in the
63
62
  * options means that `title` is observable, and has get/set accessors.
64
63
  *
65
- * @template {import("../Feature.js").default} [FeatureType=import("../Feature.js").default]
66
- * @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<FeatureType>]
67
- * @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorImageLayerRenderer>}
64
+ * @template {import("../Feature.js").default} FeatureType
65
+ * @extends {BaseVectorLayer<import("../source/Vector.js").default<FeatureType>, CanvasVectorImageLayerRenderer>}
68
66
  * @api
69
67
  */
70
68
  class VectorImageLayer extends BaseVectorLayer {
71
69
  /**
72
- * @param {Options<FeatureType, VectorSourceType>} [options] Options.
70
+ * @param {Options<import("../source/Vector.js").default<FeatureType>>} [options] Options.
73
71
  */
74
72
  constructor(options) {
75
73
  options = options ? options : {};
@@ -4,11 +4,7 @@ export default VectorTileLayer;
4
4
  */
5
5
  export type VectorTileLayerOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("./Base").BaseLayerObjectEventTypes | import("./Layer.js").LayerEventType | 'change:preload' | 'change:useInterimTilesOnError', import("../Object").ObjectEvent, Return> & import("../Observable").OnSignature<import("../render/EventType").LayerRenderEventTypes, import("../render/Event").default, Return> & import("../Observable").CombinedOnSignature<import("../Observable").EventTypes | import("./Base").BaseLayerObjectEventTypes | import("./Layer.js").LayerEventType | 'change:preload' | 'change:useInterimTilesOnError' | import("../render/EventType").LayerRenderEventTypes, Return>;
6
6
  export type VectorTileRenderType = 'hybrid' | 'vector';
7
- /**
8
- * *
9
- */
10
- export type ExtractedFeatureType<T> = T extends import("../source/VectorTile.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never;
11
- export type Options<VectorTileSourceType extends import("../source/VectorTile.js").default<FeatureType> = import("../source/VectorTile.js").default<any>, FeatureType extends import("../Feature.js").FeatureLike = ExtractedFeatureType<VectorTileSourceType>> = {
7
+ export type Options<FeatureType extends import("../Feature").FeatureLike> = {
12
8
  /**
13
9
  * A CSS class name to set to the layer element.
14
10
  */
@@ -81,7 +77,7 @@ export type Options<VectorTileSourceType extends import("../source/VectorTile.js
81
77
  /**
82
78
  * Source.
83
79
  */
84
- source?: VectorTileSourceType | undefined;
80
+ source?: import("../source/VectorTile.js").default<FeatureType> | undefined;
85
81
  /**
86
82
  * Sets the layer as overlay on a map. The map will not manage
87
83
  * this layer in its layers collection, and the layer will be rendered on top. This is useful for
@@ -148,13 +144,8 @@ export type Options<VectorTileSourceType extends import("../source/VectorTile.js
148
144
  /**
149
145
  * @typedef {'hybrid' | 'vector'} VectorTileRenderType
150
146
  */
151
- /***
152
- * @template T
153
- * @typedef {T extends import("../source/VectorTile.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never} ExtractedFeatureType
154
- */
155
147
  /**
156
- * @template {import("../source/VectorTile.js").default<FeatureType>} [VectorTileSourceType=import("../source/VectorTile.js").default<*>]
157
- * @template {import("../Feature").FeatureLike} [FeatureType=ExtractedFeatureType<VectorTileSourceType>]
148
+ * @template {import('../Feature').FeatureLike} FeatureType
158
149
  * @typedef {Object} Options
159
150
  * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
160
151
  * @property {number} [opacity=1] Opacity (0, 1).
@@ -189,7 +180,7 @@ export type Options<VectorTileSourceType extends import("../source/VectorTile.js
189
180
  * this mode for improved performance and visual epxerience on vector tile layers with not too many
190
181
  * rendered features (e.g. for highlighting a subset of features of another layer with the same
191
182
  * source).
192
- * @property {VectorTileSourceType} [source] Source.
183
+ * @property {import("../source/VectorTile.js").default<FeatureType>} [source] Source.
193
184
  * @property {import("../Map.js").default} [map] Sets the layer as overlay on a map. The map will not manage
194
185
  * this layer in its layers collection, and the layer will be rendered on top. This is useful for
195
186
  * temporary layers. The standard way to add a layer to a map and have it managed by the map is to
@@ -222,16 +213,15 @@ export type Options<VectorTileSourceType extends import("../source/VectorTile.js
222
213
  * property on the layer object; for example, setting `title: 'My Title'` in the
223
214
  * options means that `title` is observable, and has get/set accessors.
224
215
  *
225
- * @template {import("../source/VectorTile.js").default<FeatureType>} [VectorTileSourceType=import("../source/VectorTile.js").default<*>]
226
- * @template {import("../Feature.js").FeatureLike} [FeatureType=ExtractedFeatureType<VectorTileSourceType>]
227
- * @extends {BaseVectorLayer<FeatureType, VectorTileSourceType, CanvasVectorTileLayerRenderer>}
216
+ * @template {import('../Feature').FeatureLike} FeatureType
217
+ * @extends {BaseVectorLayer<import("../source/VectorTile.js").default<FeatureType>, CanvasVectorTileLayerRenderer>}
228
218
  * @api
229
219
  */
230
- declare class VectorTileLayer<VectorTileSourceType extends import("../source/VectorTile.js").default<FeatureType> = import("../source/VectorTile.js").default<any>, FeatureType extends import("../Feature.js").FeatureLike = ExtractedFeatureType<VectorTileSourceType>> extends BaseVectorLayer<FeatureType, VectorTileSourceType, CanvasVectorTileLayerRenderer> {
220
+ declare class VectorTileLayer<FeatureType extends import("../Feature").FeatureLike> extends BaseVectorLayer<import("../source/VectorTile.js").default<FeatureType>, CanvasVectorTileLayerRenderer> {
231
221
  /**
232
- * @param {Options<VectorTileSourceType, FeatureType>} [options] Options.
222
+ * @param {Options<FeatureType>} [options] Options.
233
223
  */
234
- constructor(options?: Options<VectorTileSourceType, FeatureType> | undefined);
224
+ constructor(options?: Options<FeatureType> | undefined);
235
225
  /***
236
226
  * @type {VectorTileLayerOnSignature<import("../events").EventsKey>}
237
227
  */
@@ -1 +1 @@
1
- {"version":3,"file":"VectorTile.d.ts","sourceRoot":"","sources":["VectorTile.js"],"names":[],"mappings":";;;;iDAUa,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,QAAQ,EAAE,yBAAyB,GAClF,OAAa,YAAY,EAAE,cAAc,GAAC,gBAAgB,GAAC,+BAA+B,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GACpI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,qBAAqB,EAAE,qBAAqB,EAAE,OAAO,iBAAiB,EAAE,OAAO,EAAE,MAAM,CAAC,GACvI,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,QAAQ,EAAE,yBAAyB,GAC7H,OAAa,YAAY,EAAE,cAAc,GAAC,gBAAgB,GAAC,+BAA+B,GAAC,OAAO,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,CAAC;mCAI3I,QAAQ,GAAG,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAXhC;;;;;;;;GAQG;AAEH;;GAEG;AAEH;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AAEH;;;;;;;;;;;GAWG;AACH;IAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAXhC;;;;;;;;GAQG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH;;;;;;;;;;GAUG;AACH;IACE;;OAEG;IACH,wDA0DC;IA/CC;;OAEG;IACH,IAFU,2BAA2B,OAAO,WAAW,EAAE,SAAS,CAAC,CAE5D;IAEP;;OAEG;IACH,MAFU,2BAA2B,OAAO,WAAW,EAAE,SAAS,CAAC,CAE1D;IAET;;OAEG;IACH,IAFU,2BAA2B,IAAI,CAAC,CAEnC;IAQP;;;OAGG;IACH,oBAA6B;IA8C/B;;OAEG;IACH,iBAFY,oBAAoB,CAI/B;IAED;;;;;OAKG;IACH,cAJY,MAAM,CAMjB;IAED;;;;;OAKG;IACH,6BAJY,OAAO,CAQlB;IAED;;;;;OAKG;IACH,oBAJW,MAAM,QAMhB;IAED;;;;;OAKG;IACH,kDAJW,OAAO,QAMjB;CACF;0CAlOyC,uCAAuC;4BADrD,iBAAiB"}
@@ -20,14 +20,8 @@ import {assert} from '../asserts.js';
20
20
  * @typedef {'hybrid' | 'vector'} VectorTileRenderType
21
21
  */
22
22
 
23
- /***
24
- * @template T
25
- * @typedef {T extends import("../source/VectorTile.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never} ExtractedFeatureType
26
- */
27
-
28
23
  /**
29
- * @template {import("../source/VectorTile.js").default<FeatureType>} [VectorTileSourceType=import("../source/VectorTile.js").default<*>]
30
- * @template {import("../Feature").FeatureLike} [FeatureType=ExtractedFeatureType<VectorTileSourceType>]
24
+ * @template {import('../Feature').FeatureLike} FeatureType
31
25
  * @typedef {Object} Options
32
26
  * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
33
27
  * @property {number} [opacity=1] Opacity (0, 1).
@@ -62,7 +56,7 @@ import {assert} from '../asserts.js';
62
56
  * this mode for improved performance and visual epxerience on vector tile layers with not too many
63
57
  * rendered features (e.g. for highlighting a subset of features of another layer with the same
64
58
  * source).
65
- * @property {VectorTileSourceType} [source] Source.
59
+ * @property {import("../source/VectorTile.js").default<FeatureType>} [source] Source.
66
60
  * @property {import("../Map.js").default} [map] Sets the layer as overlay on a map. The map will not manage
67
61
  * this layer in its layers collection, and the layer will be rendered on top. This is useful for
68
62
  * temporary layers. The standard way to add a layer to a map and have it managed by the map is to
@@ -96,19 +90,20 @@ import {assert} from '../asserts.js';
96
90
  * property on the layer object; for example, setting `title: 'My Title'` in the
97
91
  * options means that `title` is observable, and has get/set accessors.
98
92
  *
99
- * @template {import("../source/VectorTile.js").default<FeatureType>} [VectorTileSourceType=import("../source/VectorTile.js").default<*>]
100
- * @template {import("../Feature.js").FeatureLike} [FeatureType=ExtractedFeatureType<VectorTileSourceType>]
101
- * @extends {BaseVectorLayer<FeatureType, VectorTileSourceType, CanvasVectorTileLayerRenderer>}
93
+ * @template {import('../Feature').FeatureLike} FeatureType
94
+ * @extends {BaseVectorLayer<import("../source/VectorTile.js").default<FeatureType>, CanvasVectorTileLayerRenderer>}
102
95
  * @api
103
96
  */
104
97
  class VectorTileLayer extends BaseVectorLayer {
105
98
  /**
106
- * @param {Options<VectorTileSourceType, FeatureType>} [options] Options.
99
+ * @param {Options<FeatureType>} [options] Options.
107
100
  */
108
101
  constructor(options) {
109
102
  options = options ? options : {};
110
103
 
111
- const baseOptions = Object.assign({}, options);
104
+ const baseOptions = /** @type {Options<FeatureType>} */ (
105
+ Object.assign({}, options)
106
+ );
112
107
  delete baseOptions.preload;
113
108
  delete baseOptions.useInterimTilesOnError;
114
109
 
@@ -164,9 +159,7 @@ class VectorTileLayer extends BaseVectorLayer {
164
159
  }
165
160
 
166
161
  createRenderer() {
167
- return new CanvasVectorTileLayerRenderer(
168
- /** @type {VectorTileLayer} */ (this),
169
- );
162
+ return new CanvasVectorTileLayerRenderer(this);
170
163
  }
171
164
 
172
165
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "9.2.5-dev.1717260235384",
3
+ "version": "9.2.5-sh.1",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
@@ -3,10 +3,10 @@ export default CanvasTileLayerRenderer;
3
3
  * @classdesc
4
4
  * Canvas renderer for tile layers.
5
5
  * @api
6
- * @template {import("../../layer/Tile.js").default|import("../../layer/VectorTile.js").default} [LayerType=import("../../layer/Tile.js").default<import("../../source/Tile.js").default>|import("../../layer/VectorTile.js").default]
6
+ * @template {import("../../layer/Tile.js").default<import("../../source/Tile.js").default>|import("../../layer/VectorTile.js").default} [LayerType=import("../../layer/Tile.js").default<import("../../source/Tile.js").default>|import("../../layer/VectorTile.js").default]
7
7
  * @extends {CanvasLayerRenderer<LayerType>}
8
8
  */
9
- declare class CanvasTileLayerRenderer<LayerType extends import("../../layer/Tile.js").default<import("../../source/Tile.js").default> | import("../../layer/VectorTile.js").default<import("../../source.js").VectorTile<any>, any> = import("../../layer/Tile.js").default<import("../../source/Tile.js").default> | import("../../layer/VectorTile.js").default<import("../../source.js").VectorTile<any>, any>> extends CanvasLayerRenderer<LayerType> {
9
+ declare class CanvasTileLayerRenderer<LayerType extends import("../../layer/Tile.js").default<import("../../source/Tile.js").default> | import("../../layer/VectorTile.js").default<any> = import("../../layer/Tile.js").default<import("../../source/Tile.js").default> | import("../../layer/VectorTile.js").default<any>> extends CanvasLayerRenderer<LayerType> {
10
10
  /**
11
11
  * @param {LayerType} tileLayer Tile layer.
12
12
  */
@@ -28,7 +28,7 @@ import {toSize} from '../../size.js';
28
28
  * @classdesc
29
29
  * Canvas renderer for tile layers.
30
30
  * @api
31
- * @template {import("../../layer/Tile.js").default|import("../../layer/VectorTile.js").default} [LayerType=import("../../layer/Tile.js").default<import("../../source/Tile.js").default>|import("../../layer/VectorTile.js").default]
31
+ * @template {import("../../layer/Tile.js").default<import("../../source/Tile.js").default>|import("../../layer/VectorTile.js").default} [LayerType=import("../../layer/Tile.js").default<import("../../source/Tile.js").default>|import("../../layer/VectorTile.js").default]
32
32
  * @extends {CanvasLayerRenderer<LayerType>}
33
33
  */
34
34
  class CanvasTileLayerRenderer extends CanvasLayerRenderer {
@@ -8,7 +8,7 @@ declare class CanvasVectorImageLayerRenderer extends CanvasImageLayerRenderer {
8
8
  /**
9
9
  * @param {import("../../layer/VectorImage.js").default} layer Vector image layer.
10
10
  */
11
- constructor(layer: import("../../layer/VectorImage.js").default);
11
+ constructor(layer: import("../../layer/VectorImage.js").default<any>);
12
12
  /**
13
13
  * @private
14
14
  * @type {import("./VectorLayer.js").default}
@@ -1 +1 @@
1
- {"version":3,"file":"VectorImageLayer.d.ts","sourceRoot":"","sources":["VectorImageLayer.js"],"names":[],"mappings":";AAcA;;;;GAIG;AACH;IACE;;OAEG;IACH,mBAFW,OAAO,4BAA4B,EAAE,OAAO,EA4BtD;IAvBC;;;OAGG;IACH,wBAA2D;IAE3D;;;OAGG;IACH,yBAA6C;IAE7C;;;OAGG;IACH,0CAAiD;IAEjD;;;OAGG;IACH,4CAA+C;IAWjD;;;;OAIG;IACH,mBAHW,OAAO,gBAAgB,EAAE,KAAK,GAC7B,QAAQ,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,CAAC,CAW1D;IAgHD;OACG;IACH,kBAAc;IAEd;OACG;IACH,mBAAe;IAEf;OACG;IACH,wBAAoB;CAmCrB;qCAnOoC,iBAAiB"}
1
+ {"version":3,"file":"VectorImageLayer.d.ts","sourceRoot":"","sources":["VectorImageLayer.js"],"names":[],"mappings":";AAcA;;;;GAIG;AACH;IACE;;OAEG;IACH,sEA0BC;IAvBC;;;OAGG;IACH,wBAA2D;IAE3D;;;OAGG;IACH,yBAA6C;IAE7C;;;OAGG;IACH,0CAAiD;IAEjD;;;OAGG;IACH,4CAA+C;IAWjD;;;;OAIG;IACH,mBAHW,OAAO,gBAAgB,EAAE,KAAK,GAC7B,QAAQ,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,CAAC,CAW1D;IAgHD;OACG;IACH,kBAAc;IAEd;OACG;IACH,mBAAe;IAEf;OACG;IACH,wBAAoB;CAmCrB;qCAnOoC,iBAAiB"}
@@ -8,7 +8,7 @@ declare class CanvasVectorLayerRenderer extends CanvasLayerRenderer<any> {
8
8
  /**
9
9
  * @param {import("../../layer/BaseVector.js").default} vectorLayer Vector layer.
10
10
  */
11
- constructor(vectorLayer: import("../../layer/BaseVector.js").default<any, any, any>);
11
+ constructor(vectorLayer: import("../../layer/BaseVector.js").default<any, any>);
12
12
  /** @private */
13
13
  private boundHandleStyleImageChange_;
14
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"VectorLayer.d.ts","sourceRoot":"","sources":["VectorLayer.js"],"names":[],"mappings":";AA4CA;;;;GAIG;AACH;IACE;;OAEG;IACH,qFAqHC;IAlHC,eAAe;IACf,qCAA2E;IAE3E;;OAEG;IACH,yBAFU,OAAO,CAEW;IAE5B;;OAEG;IACH,wBAFU,SAAS,GAAC,IAAI,CAEU;IAElC;;;OAGG;IACH,iBAAqB;IAErB;;;OAGG;IACH,0BAA6B;IAE7B;;;OAGG;IACH,0BAA2B;IAE3B;;;OAGG;IACH,4BAA8B;IAE9B;;;OAGG;IACH,wBAAoC;IAEpC;;;OAGG;IACH,+BAA2C;IAE3C;;;OAGG;IACH,0BAAsB;IAEtB;;;OAGG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,4BAA+B;IAE/B;;;OAGG;IACH,4BAA4B;IAE5B;;;OAGG;IACH,6BAAgC;IAEhC;;;OAGG;IACH,gCAA4B;IAE5B;;;OAGG;IACH,qBAAwB;IAExB;;;OAGG;IACH,oBAFU,OAAO,CAEa;IAE9B;;;OAGG;IACH,UAFU,OAAO,CAEG;IAEpB;;;OAGG;IACH,uBAA0B;IAE1B;;;OAGG;IACH,iBAAiB;IAGnB;;;;;OAKG;IACH,4BALW,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pB;;;OAGG;IACH,uBAA0B;IAE1B;;;OAGG;IACH,iBAAiB;IAGnB;;;;;OAKG;IACH,4BALW,aAAa,cACb,OAAO,cAAc,EAAE,UAAU,6CA4D3C;IAED;;OAEG;IACH,wBASC;IAED;;OAEG;IACH,0BAWC;IAED;;;OAGG;IACH,4BAFW,OAAO,cAAc,EAAE,UAAU,QAO3C;IAmFD;;;;;OAKG;IACH,mBAJW,OAAO,gBAAgB,EAAE,KAAK,GAC7B,QAAQ,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,CAAC,CA8F1D;IA4FD;;;;OAIG;IACH,gCAEC;IA0MD;;;;;;;;;OASG;IACH,uBATW,OAAO,kBAAkB,EAAE,OAAO,oBAClC,MAAM,UACN,OAAO,sBAAsB,EAAE,OAAO,GAAC,MAAM,OAAO,sBAAsB,EAAE,OAAO,CAAC,gBACpF,OAAO,qCAAqC,EAAE,OAAO,mIAIpD,OAAO,CA0ClB;CACF;gCAnyB6C,YAAY;0BAKnD,sCAAsC"}
@@ -3,13 +3,13 @@ export default CanvasVectorTileLayerRenderer;
3
3
  * @classdesc
4
4
  * Canvas renderer for vector tile layers.
5
5
  * @api
6
- * @extends {CanvasTileLayerRenderer<import("../../layer/VectorTile.js").default<import('../../source/VectorTile.js').default<import('../../Feature.js').FeatureLike>>>}
6
+ * @extends {CanvasTileLayerRenderer<import("../../layer/VectorTile.js").default>}
7
7
  */
8
- declare class CanvasVectorTileLayerRenderer extends CanvasTileLayerRenderer<import("../../layer/VectorTile.js").default<import("../../source/VectorTile.js").default<import("../../Feature.js").FeatureLike>, import("../../Feature.js").FeatureLike>> {
8
+ declare class CanvasVectorTileLayerRenderer extends CanvasTileLayerRenderer<import("../../layer/VectorTile.js").default<any>> {
9
9
  /**
10
10
  * @param {import("../../layer/VectorTile.js").default} layer VectorTile layer.
11
11
  */
12
- constructor(layer: import("../../layer/VectorTile.js").default);
12
+ constructor(layer: import("../../layer/VectorTile.js").default<any>);
13
13
  /** @private */
14
14
  private boundHandleStyleImageChange_;
15
15
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"VectorTileLayer.d.ts","sourceRoot":"","sources":["VectorTileLayer.js"],"names":[],"mappings":";AA4DA;;;;;GAKG;AACH;IACE;;OAEG;IACH,mBAFW,OAAO,2BAA2B,EAAE,OAAO,EA2CrD;IAtCC,eAAe;IACf,qCAA2E;IAE3E;;;OAGG;IACH,+BAA2B;IAE3B;;;OAGG;IACH,4CAA+C;IAE/C;;;OAGG;IACH,0BAAsB;IAEtB;;;OAGG;IACH,yBAAyB;IAEzB;;;OAGG;IACH,sBAAsC;IAEtC;;;OAGG;IACH,0BAA6B;IAG/B;;;;;OAKG;IACH,kBALW,OAAO,2BAA2B,EAAE,OAAO,cAC3C,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,GAAC,SAAS,CAY5B;IAkCD;;;OAGG;IACH,qBAHW,OAAO,2BAA2B,EAAE,OAAO,GAC1C,OAAO,CAUlB;IAED;;OAEG;IACH,6BAEC;IAgBD;;;;;OAKG;IACH,6BAqHC;IAyND;;;;OAIG;IACH,gCAEC;IAED;;;;OAIG;IACH,4BAHW,OAAO,cAAc,EAAE,UAAU,cACjC,OAAO,sBAAsB,EAAE,KAAK,QAiC9C;IA0DD,6DA+BC;IAkID;;;;;;;;OAQG;IACH,uBARW,OAAO,kBAAkB,EAAE,WAAW,oBACtC,MAAM,UACN,OAAO,sBAAsB,EAAE,OAAO,GAAC,MAAM,OAAO,sBAAsB,EAAE,OAAO,CAAC,gBACpF,OAAO,qCAAqC,EAAE,OAAO,gEAGpD,OAAO,CAyClB;IAED;;;;OAIG;IACH,8BAcC;IAED;;;;OAIG;IACH,yBAwDC;CACF;oCAh6BmC,gBAAgB"}
1
+ {"version":3,"file":"VectorTileLayer.d.ts","sourceRoot":"","sources":["VectorTileLayer.js"],"names":[],"mappings":";AA4DA;;;;;GAKG;AACH;IACE;;OAEG;IACH,qEAyCC;IAtCC,eAAe;IACf,qCAA2E;IAE3E;;;OAGG;IACH,+BAA2B;IAE3B;;;OAGG;IACH,4CAA+C;IAE/C;;;OAGG;IACH,0BAAsB;IAEtB;;;OAGG;IACH,yBAAyB;IAEzB;;;OAGG;IACH,sBAAsC;IAEtC;;;OAGG;IACH,0BAA6B;IAG/B;;;;;OAKG;IACH,kBALW,OAAO,2BAA2B,EAAE,OAAO,cAC3C,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,GAAC,SAAS,CAY5B;IAkCD;;;OAGG;IACH,qBAHW,OAAO,2BAA2B,EAAE,OAAO,GAC1C,OAAO,CAUlB;IAED;;OAEG;IACH,6BAEC;IAgBD;;;;;OAKG;IACH,6BAqHC;IAyND;;;;OAIG;IACH,gCAEC;IAED;;;;OAIG;IACH,4BAHW,OAAO,cAAc,EAAE,UAAU,cACjC,OAAO,sBAAsB,EAAE,KAAK,QAiC9C;IA0DD,6DA+BC;IAkID;;;;;;;;OAQG;IACH,uBARW,OAAO,kBAAkB,EAAE,WAAW,oBACtC,MAAM,UACN,OAAO,sBAAsB,EAAE,OAAO,GAAC,MAAM,OAAO,sBAAsB,EAAE,OAAO,CAAC,gBACpF,OAAO,qCAAqC,EAAE,OAAO,gEAGpD,OAAO,CAyClB;IAED;;;;OAIG;IACH,8BAcC;IAED;;;;OAIG;IACH,yBAwDC;CACF;oCAh6BmC,gBAAgB"}
@@ -62,7 +62,7 @@ const VECTOR_REPLAYS = {
62
62
  * @classdesc
63
63
  * Canvas renderer for vector tile layers.
64
64
  * @api
65
- * @extends {CanvasTileLayerRenderer<import("../../layer/VectorTile.js").default<import('../../source/VectorTile.js').default<import('../../Feature.js').FeatureLike>>>}
65
+ * @extends {CanvasTileLayerRenderer<import("../../layer/VectorTile.js").default>}
66
66
  */
67
67
  class CanvasVectorTileLayerRenderer extends CanvasTileLayerRenderer {
68
68
  /**
@@ -10,7 +10,12 @@
10
10
  * @return {TileRepresentationLookup} A new tile representation lookup.
11
11
  */
12
12
  export function newTileRepresentationLookup(): TileRepresentationLookup;
13
- export function getCacheKey(source: any, tileCoord: any): string;
13
+ /**
14
+ * @param {import("../../source/Tile.js").default} source The source.
15
+ * @param {import('../../tilecoord.js').TileCoord} tileCoord The tile coordinate.
16
+ * @return {string} The cache key.
17
+ */
18
+ export function getCacheKey(source: import("../../source/Tile.js").default, tileCoord: import('../../tilecoord.js').TileCoord): string;
14
19
  export namespace Uniforms {
15
20
  let TILE_TRANSFORM: string;
16
21
  let TRANSITION_ALPHA: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TileLayerBase.d.ts","sourceRoot":"","sources":["TileLayerBase.js"],"names":[],"mappings":"AAuDA;;GAEG;AACH;;;;GAIG;AAEH;;GAEG;AACH,+CAFY,wBAAwB,CAInC;AA0DD,iEAEC;;;;;;;;;;;;;;yCAzEY,OAAO,uCAAuC,EAAE,OAAO,CAAC,OAAO,eAAe,EAAE,OAAO,CAAC;;;;;aAIvF,IAAI,MAAM,CAAC;;;;;YACJ,MAAM,GAAE,6FAA+B;;;;;;;;;;;;;;;;;;;;;AAsE5D;;;;;;GAMG;AAEH;;GAEG;AAEH;;;;;;;GAOG;AACH;IACE;;;OAGG;IACH,uBAHW,SAAS,WACT,OAAO,EA+DjB;IAvDC;;;OAGG;IACH,gBAFU,OAAO,CAEU;IAE3B;;;;OAIG;IACH,uBAAuC;IAEvC;;;OAGG;IACH,oBAHU,MAAM,MAAM,CAAC,CAGK;IAE5B;;;OAGG;IACH,uBAA+C;IAE/C;;;OAGG;IACH,uBAA8C;IAE9C;;;OAGG;IACH,kBAAuB;IAGvB;;;OAGG;IACH,mCAHU,OAAO,2BAA2B,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAGnB;IAEtD;;;OAGG;IACH,sBAFU,OAAO,cAAc,EAAE,UAAU,GAAC,IAAI,CAE1B;IAEtB;;;OAGG;IACH,oBAA4B;IAG9B;;OAEG;IACH,eAFW,OAAO,QAMjB;IAED;;;;OAIG;IACH,wBASC;IA2BD;;;;;OAKG;IACH,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EAAE,UAAU,cACxC,OAAO,iBAAiB,EAAE,MAAM,SAChC,MAAM,UACN,MAAM,SACN,MAAM,QAeb;IAEJ;;;;;;OAMG;IACH,6CANW,kBAAkB,SAClB,MAAM,UACN,OAAO,iBAAiB,EAAE,MAAM,SAChC,MAAM,QAG0C;IAE3D,iIAuEC;IAED;;;;OAIG;IACH,wBAHW,OAAO,cAAc,EAAE,UAAU,GAChC,WAAW,CAqNtB;IAED;;;;;;;;;;OAUG;IACH,sBAsCC;IAED,mBAMC;CAiBF;+BAxzB8B,YAAY"}
@@ -125,8 +125,13 @@ function getRenderExtent(frameState, extent) {
125
125
  return extent;
126
126
  }
127
127
 
128
+ /**
129
+ * @param {import("../../source/Tile.js").default} source The source.
130
+ * @param {import('../../tilecoord.js').TileCoord} tileCoord The tile coordinate.
131
+ * @return {string} The cache key.
132
+ */
128
133
  export function getCacheKey(source, tileCoord) {
129
- return `${source.getKey()},${getTileCoordKey(tileCoord)}`;
134
+ return `${source.getKey()},${source.getRevision()},${getTileCoordKey(tileCoord)}`;
130
135
  }
131
136
 
132
137
  /**
@@ -1,5 +1,5 @@
1
1
  export default OGCVectorTile;
2
- export type Options<FeatureType extends import("../Feature.js").FeatureLike = import("../render/Feature.js").default> = {
2
+ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
3
3
  /**
4
4
  * URL to the OGC Vector Tileset endpoint.
5
5
  */
@@ -10,9 +10,9 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike = im
10
10
  */
11
11
  context?: any;
12
12
  /**
13
- * Feature format for tiles. Used and required by the default.
13
+ * Feature parser for tiles.
14
14
  */
15
- format?: import("../format/Feature.js").default<import("../format/Feature.js").FeatureToFeatureClass<FeatureType>> | undefined;
15
+ format: import("../format/Feature.js").default<import('../format/Feature.js').FeatureToFeatureClass<FeatureType>>;
16
16
  /**
17
17
  * The content type for the tiles (e.g. "application/vnd.mapbox-vector-tile"). If not provided,
18
18
  * the source will try to find a link with rel="item" that uses a vector type supported by the configured format.
@@ -70,12 +70,12 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike = im
70
70
  collections?: string[] | undefined;
71
71
  };
72
72
  /**
73
- * @template {import("../Feature.js").FeatureLike} [FeatureType=import("../render/Feature.js").default]
73
+ * @template {import("../Feature.js").FeatureLike} FeatureType
74
74
  * @typedef {Object} Options
75
75
  * @property {string} url URL to the OGC Vector Tileset endpoint.
76
76
  * @property {Object} [context] A lookup of values to use in the tile URL template. The `{tileMatrix}`
77
77
  * (zoom level), `{tileRow}`, and `{tileCol}` variables in the URL will always be provided by the source.
78
- * @property {import("../format/Feature.js").default<import("../format/Feature.js").FeatureToFeatureClass<FeatureType>>} [format] Feature format for tiles. Used and required by the default.
78
+ * @property {import("../format/Feature.js").default<import('../format/Feature.js').FeatureToFeatureClass<FeatureType>>} format Feature parser for tiles.
79
79
  * @property {string} [mediaType] The content type for the tiles (e.g. "application/vnd.mapbox-vector-tile"). If not provided,
80
80
  * the source will try to find a link with rel="item" that uses a vector type supported by the configured format.
81
81
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
@@ -112,10 +112,10 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike = im
112
112
  * which of the advertised media types is used. If you need to force the use of a particular media type, you can
113
113
  * provide the `mediaType` option.
114
114
  * @api
115
- * @template {import("../Feature.js").FeatureLike} [FeatureType=import("../render/Feature.js").default]
115
+ * @template {import("../Feature.js").FeatureLike} FeatureType
116
116
  * @extends {VectorTileSource<FeatureType>}
117
117
  */
118
- declare class OGCVectorTile<FeatureType extends import("../Feature.js").FeatureLike = import("../render/Feature.js").default> extends VectorTileSource<FeatureType> {
118
+ declare class OGCVectorTile<FeatureType extends import("../Feature.js").FeatureLike> extends VectorTileSource<FeatureType> {
119
119
  /**
120
120
  * @param {Options<FeatureType>} options OGC vector tile options.
121
121
  */
@@ -1 +1 @@
1
- {"version":3,"file":"OGCVectorTile.d.ts","sourceRoot":"","sources":["OGCVectorTile.js"],"names":[],"mappings":";;;;;SAWc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAaN,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;;;;;;;;;;;GAcG;AACH;IACE;;OAEG;IACH,qBAFW,QAAQ,WAAW,CAAC,EA6B9B;IAED;;;OAGG;IACH,2BAIC;IAED;;;OAGG;IACH,qBAGC;CACF;6BAtG4B,iBAAiB"}
1
+ {"version":3,"file":"OGCVectorTile.d.ts","sourceRoot":"","sources":["OGCVectorTile.js"],"names":[],"mappings":";;;;;SAWc,MAAM;;;;;;;;;YAGN,OAAO,sBAAsB,EAAE,OAAO,CAAC,OAAO,sBAAsB,EAAE,qBAAqB,CAAC,WAAW,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUzG,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;;;;;;;;;;;GAcG;AACH;IACE;;OAEG;IACH,qBAFW,QAAQ,WAAW,CAAC,EA6B9B;IAED;;;OAGG;IACH,2BAIC;IAED;;;OAGG;IACH,qBAGC;CACF;6BAtG4B,iBAAiB"}
@@ -7,12 +7,12 @@ import {getTileSetInfo} from './ogcTileUtil.js';
7
7
  import {error as logError} from '../console.js';
8
8
 
9
9
  /**
10
- * @template {import("../Feature.js").FeatureLike} [FeatureType=import("../render/Feature.js").default]
10
+ * @template {import("../Feature.js").FeatureLike} FeatureType
11
11
  * @typedef {Object} Options
12
12
  * @property {string} url URL to the OGC Vector Tileset endpoint.
13
13
  * @property {Object} [context] A lookup of values to use in the tile URL template. The `{tileMatrix}`
14
14
  * (zoom level), `{tileRow}`, and `{tileCol}` variables in the URL will always be provided by the source.
15
- * @property {import("../format/Feature.js").default<import("../format/Feature.js").FeatureToFeatureClass<FeatureType>>} [format] Feature format for tiles. Used and required by the default.
15
+ * @property {import("../format/Feature.js").default<import('../format/Feature.js').FeatureToFeatureClass<FeatureType>>} format Feature parser for tiles.
16
16
  * @property {string} [mediaType] The content type for the tiles (e.g. "application/vnd.mapbox-vector-tile"). If not provided,
17
17
  * the source will try to find a link with rel="item" that uses a vector type supported by the configured format.
18
18
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
@@ -50,7 +50,7 @@ import {error as logError} from '../console.js';
50
50
  * which of the advertised media types is used. If you need to force the use of a particular media type, you can
51
51
  * provide the `mediaType` option.
52
52
  * @api
53
- * @template {import("../Feature.js").FeatureLike} [FeatureType=import("../render/Feature.js").default]
53
+ * @template {import("../Feature.js").FeatureLike} FeatureType
54
54
  * @extends {VectorTileSource<FeatureType>}
55
55
  */
56
56
  class OGCVectorTile extends VectorTileSource {