ol 9.1.1-dev.1714029994499 → 9.1.1-dev.1714069828003
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/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/layer/BaseVector.d.ts +3 -3
- package/layer/BaseVector.js +2 -2
- package/layer/Tile.d.ts +1 -1
- package/layer/Vector.d.ts +2 -2
- package/layer/Vector.js +1 -1
- package/layer/VectorTile.d.ts +7 -132
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/VectorTile.js +5 -3
- package/package.json +1 -1
- package/renderer/canvas/TileLayer.d.ts +1 -1
- package/renderer/canvas/VectorTileLayer.d.ts +2 -2
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/util.js +1 -1
package/layer/BaseVector.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default BaseVectorLayer;
|
|
2
|
-
export type Options<VectorSourceType extends import("../source/
|
|
2
|
+
export type Options<VectorSourceType extends import("../source/VectorTile.js").default<import("../Feature").FeatureLike> | import("../source/Vector.js").default<import("../Feature").FeatureLike>> = {
|
|
3
3
|
/**
|
|
4
4
|
* A CSS class name to set to the layer element.
|
|
5
5
|
*/
|
|
@@ -112,12 +112,12 @@ 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("../source/Vector.js").default
|
|
115
|
+
* @template {import("../source/Vector.js").default<import('../Feature').FeatureLike>|import("../source/VectorTile.js").default<import('../Feature').FeatureLike>} VectorSourceType
|
|
116
116
|
* @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
|
|
117
117
|
* @extends {Layer<VectorSourceType, RendererType>}
|
|
118
118
|
* @api
|
|
119
119
|
*/
|
|
120
|
-
declare class BaseVectorLayer<VectorSourceType extends import("../source/
|
|
120
|
+
declare class BaseVectorLayer<VectorSourceType extends import("../source/VectorTile.js").default<import("../Feature").FeatureLike> | import("../source/Vector.js").default<import("../Feature").FeatureLike>, 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
121
|
/**
|
|
122
122
|
* @param {Options<VectorSourceType>} [options] Options.
|
|
123
123
|
*/
|
package/layer/BaseVector.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from '../render/canvas/style.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* @template {import("../source/Vector.js").default
|
|
16
|
+
* @template {import("../source/Vector.js").default<import('../Feature').FeatureLike>|import("../source/VectorTile.js").default<import('../Feature').FeatureLike>} VectorSourceType
|
|
17
17
|
* @typedef {Object} Options
|
|
18
18
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
19
19
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
@@ -77,7 +77,7 @@ const Property = {
|
|
|
77
77
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
78
78
|
* options means that `title` is observable, and has get/set accessors.
|
|
79
79
|
*
|
|
80
|
-
* @template {import("../source/Vector.js").default
|
|
80
|
+
* @template {import("../source/Vector.js").default<import('../Feature').FeatureLike>|import("../source/VectorTile.js").default<import('../Feature').FeatureLike>} VectorSourceType
|
|
81
81
|
* @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
|
|
82
82
|
* @extends {Layer<VectorSourceType, RendererType>}
|
|
83
83
|
* @api
|
package/layer/Tile.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export default TileLayer;
|
|
|
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
|
|
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>>> {
|
|
15
15
|
/**
|
|
16
16
|
* @param {import("./BaseTile.js").Options<TileSourceType>} [options] Tile layer options.
|
|
17
17
|
*/
|
package/layer/Vector.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ export default VectorLayer;
|
|
|
10
10
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
11
11
|
* options means that `title` is observable, and has get/set accessors.
|
|
12
12
|
*
|
|
13
|
-
* @template {import("../source/Vector.js").default} VectorSourceType
|
|
13
|
+
* @template {import("../source/Vector.js").default<import('../Feature.js').FeatureLike>} VectorSourceType
|
|
14
14
|
* @extends {BaseVectorLayer<VectorSourceType, CanvasVectorLayerRenderer>}
|
|
15
15
|
* @api
|
|
16
16
|
*/
|
|
17
|
-
declare class VectorLayer<VectorSourceType extends import("../source/Vector.js").default<import("../Feature.js").
|
|
17
|
+
declare class VectorLayer<VectorSourceType extends import("../source/Vector.js").default<import("../Feature.js").FeatureLike>> extends BaseVectorLayer<VectorSourceType, CanvasVectorLayerRenderer> {
|
|
18
18
|
/**
|
|
19
19
|
* @param {import("./BaseVector.js").Options<VectorSourceType>} [options] Options.
|
|
20
20
|
*/
|
package/layer/Vector.js
CHANGED
|
@@ -15,7 +15,7 @@ import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';
|
|
|
15
15
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
16
16
|
* options means that `title` is observable, and has get/set accessors.
|
|
17
17
|
*
|
|
18
|
-
* @template {import("../source/Vector.js").default} VectorSourceType
|
|
18
|
+
* @template {import("../source/Vector.js").default<import('../Feature.js').FeatureLike>} VectorSourceType
|
|
19
19
|
* @extends {BaseVectorLayer<VectorSourceType, CanvasVectorLayerRenderer>}
|
|
20
20
|
* @api
|
|
21
21
|
*/
|
package/layer/VectorTile.d.ts
CHANGED
|
@@ -4,134 +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
|
-
export type Options =
|
|
8
|
-
/**
|
|
9
|
-
* A CSS class name to set to the layer element.
|
|
10
|
-
*/
|
|
11
|
-
className?: string | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Opacity (0, 1).
|
|
14
|
-
*/
|
|
15
|
-
opacity?: number | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* Visibility.
|
|
18
|
-
*/
|
|
19
|
-
visible?: boolean | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* The bounding extent for layer rendering. The layer will not be
|
|
22
|
-
* rendered outside of this extent.
|
|
23
|
-
*/
|
|
24
|
-
extent?: import("../extent.js").Extent | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* The z-index for layer rendering. At rendering time, the layers
|
|
27
|
-
* will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed
|
|
28
|
-
* for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`
|
|
29
|
-
* method was used.
|
|
30
|
-
*/
|
|
31
|
-
zIndex?: number | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* The minimum resolution (inclusive) at which this layer will be
|
|
34
|
-
* visible.
|
|
35
|
-
*/
|
|
36
|
-
minResolution?: number | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* The maximum resolution (exclusive) below which this layer will
|
|
39
|
-
* be visible.
|
|
40
|
-
*/
|
|
41
|
-
maxResolution?: number | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* The minimum view zoom level (exclusive) above which this layer will be
|
|
44
|
-
* visible.
|
|
45
|
-
*/
|
|
46
|
-
minZoom?: number | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* The maximum view zoom level (inclusive) at which this layer will
|
|
49
|
-
* be visible.
|
|
50
|
-
*/
|
|
51
|
-
maxZoom?: number | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Render order. Function to be used when sorting
|
|
54
|
-
* features before rendering. By default features are drawn in the order that they are created. Use
|
|
55
|
-
* `null` to avoid the sort, but get an undefined draw order.
|
|
56
|
-
*/
|
|
57
|
-
renderOrder?: import("../render.js").OrderFunction | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* The buffer in pixels around the tile extent used by the
|
|
60
|
-
* renderer when getting features from the vector tile for the rendering or hit-detection.
|
|
61
|
-
* Recommended value: Vector tiles are usually generated with a buffer, so this value should match
|
|
62
|
-
* the largest possible buffer of the used tiles. It should be at least the size of the largest
|
|
63
|
-
* point symbol or line width.
|
|
64
|
-
*/
|
|
65
|
-
renderBuffer?: number | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* Render mode for vector tiles:
|
|
68
|
-
* * `'hybrid'`: Polygon and line elements are rendered as images, so pixels are scaled during zoom
|
|
69
|
-
* animations. Point symbols and texts are accurately rendered as vectors and can stay upright on
|
|
70
|
-
* rotated views, but get lifted above all polygon and line elements.
|
|
71
|
-
* * `'vector'`: Everything is rendered as vectors and the original render order is maintained. Use
|
|
72
|
-
* this mode for improved performance and visual epxerience on vector tile layers with not too many
|
|
73
|
-
* rendered features (e.g. for highlighting a subset of features of another layer with the same
|
|
74
|
-
* source).
|
|
75
|
-
*/
|
|
76
|
-
renderMode?: VectorTileRenderType | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* Source.
|
|
79
|
-
*/
|
|
80
|
-
source?: import("../source/VectorTile.js").default<import("../Feature").default<import("../geom.js").Geometry>> | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* Sets the layer as overlay on a map. The map will not manage
|
|
83
|
-
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
84
|
-
* temporary layers. The standard way to add a layer to a map and have it managed by the map is to
|
|
85
|
-
* use [map.addLayer()]{@link import ("../Map.js").default#addLayer}.
|
|
86
|
-
*/
|
|
87
|
-
map?: import("../Map.js").default | undefined;
|
|
88
|
-
/**
|
|
89
|
-
* Declutter images and text. Any truthy value will enable
|
|
90
|
-
* decluttering. Within a layer, a feature rendered before another has higher priority. All layers with the
|
|
91
|
-
* same `declutter` value will be decluttered together. The priority is determined by the drawing order of the
|
|
92
|
-
* layers with the same `declutter` value. Higher in the layer stack means higher priority. To declutter distinct
|
|
93
|
-
* layers or groups of layers separately, use different truthy values for `declutter`.
|
|
94
|
-
*/
|
|
95
|
-
declutter?: string | number | boolean | undefined;
|
|
96
|
-
/**
|
|
97
|
-
* Layer style. When set to `null`, only
|
|
98
|
-
* features that have their own style will be rendered. See {@link module :ol/style/Style~Style} for the default style
|
|
99
|
-
* which will be used if this is not set.
|
|
100
|
-
*/
|
|
101
|
-
style?: import("../style/Style.js").StyleLike | null | undefined;
|
|
102
|
-
/**
|
|
103
|
-
* Background color for the layer. If not specified, no
|
|
104
|
-
* background will be rendered.
|
|
105
|
-
*/
|
|
106
|
-
background?: false | import("./Base").BackgroundColor | undefined;
|
|
107
|
-
/**
|
|
108
|
-
* When set to `true`, feature batches will be
|
|
109
|
-
* recreated during animations. This means that no vectors will be shown clipped, but the setting
|
|
110
|
-
* will have a performance impact for large amounts of vector data. When set to `false`, batches
|
|
111
|
-
* will be recreated when no animation is active.
|
|
112
|
-
*/
|
|
113
|
-
updateWhileAnimating?: boolean | undefined;
|
|
114
|
-
/**
|
|
115
|
-
* When set to `true`, feature batches will be
|
|
116
|
-
* recreated during interactions. See also `updateWhileAnimating`.
|
|
117
|
-
*/
|
|
118
|
-
updateWhileInteracting?: boolean | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* Preload. Load low-resolution tiles up to `preload` levels. `0`
|
|
121
|
-
* means no preloading.
|
|
122
|
-
*/
|
|
123
|
-
preload?: number | undefined;
|
|
124
|
-
/**
|
|
125
|
-
* Use interim tiles on error.
|
|
126
|
-
*/
|
|
127
|
-
useInterimTilesOnError?: boolean | undefined;
|
|
128
|
-
/**
|
|
129
|
-
* Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
|
|
130
|
-
*/
|
|
131
|
-
properties?: {
|
|
132
|
-
[x: string]: any;
|
|
133
|
-
} | undefined;
|
|
134
|
-
};
|
|
7
|
+
export type Options = any;
|
|
135
8
|
/***
|
|
136
9
|
* @template Return
|
|
137
10
|
* @typedef {import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> &
|
|
@@ -146,6 +19,7 @@ export type Options = {
|
|
|
146
19
|
*/
|
|
147
20
|
/**
|
|
148
21
|
* @typedef {Object} Options
|
|
22
|
+
* @template {import("../source/VectorTile.js").default<import('../Feature').FeatureLike>} VectorTileSourceType
|
|
149
23
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
150
24
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
151
25
|
* @property {boolean} [visible=true] Visibility.
|
|
@@ -179,7 +53,7 @@ export type Options = {
|
|
|
179
53
|
* this mode for improved performance and visual epxerience on vector tile layers with not too many
|
|
180
54
|
* rendered features (e.g. for highlighting a subset of features of another layer with the same
|
|
181
55
|
* source).
|
|
182
|
-
* @property {
|
|
56
|
+
* @property {VectorTileSourceType} [source] Source.
|
|
183
57
|
* @property {import("../Map.js").default} [map] Sets the layer as overlay on a map. The map will not manage
|
|
184
58
|
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
185
59
|
* temporary layers. The standard way to add a layer to a map and have it managed by the map is to
|
|
@@ -213,14 +87,15 @@ export type Options = {
|
|
|
213
87
|
* options means that `title` is observable, and has get/set accessors.
|
|
214
88
|
*
|
|
215
89
|
* @param {Options} [options] Options.
|
|
216
|
-
* @
|
|
90
|
+
* @template {import("../source/VectorTile.js").default<import('../Feature').FeatureLike>} VectorTileSourceType
|
|
91
|
+
* @extends {BaseVectorLayer<VectorTileSourceType, CanvasVectorTileLayerRenderer>}
|
|
217
92
|
* @api
|
|
218
93
|
*/
|
|
219
|
-
declare class VectorTileLayer extends
|
|
94
|
+
declare class VectorTileLayer<VectorTileSourceType extends import("../source/VectorTile.js").default<import("../Feature").FeatureLike>> extends BaseVectorLayer<VectorTileSourceType, CanvasVectorTileLayerRenderer> {
|
|
220
95
|
/**
|
|
221
96
|
* @param {Options} [options] Options.
|
|
222
97
|
*/
|
|
223
|
-
constructor(options?: Options
|
|
98
|
+
constructor(options?: Options);
|
|
224
99
|
/***
|
|
225
100
|
* @type {VectorTileLayerOnSignature<import("../events").EventsKey>}
|
|
226
101
|
*/
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH;;;;;;;;;;;GAWG;AACH;IACE;;OAEG;IACH,sBAFW,OAAO,EA8DjB;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;0CArOyC,uCAAuC;4BADrD,iBAAiB"}
|
package/layer/VectorTile.js
CHANGED
|
@@ -22,6 +22,7 @@ import {assert} from '../asserts.js';
|
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @typedef {Object} Options
|
|
25
|
+
* @template {import("../source/VectorTile.js").default<import('../Feature').FeatureLike>} VectorTileSourceType
|
|
25
26
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
26
27
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
27
28
|
* @property {boolean} [visible=true] Visibility.
|
|
@@ -55,7 +56,7 @@ import {assert} from '../asserts.js';
|
|
|
55
56
|
* this mode for improved performance and visual epxerience on vector tile layers with not too many
|
|
56
57
|
* rendered features (e.g. for highlighting a subset of features of another layer with the same
|
|
57
58
|
* source).
|
|
58
|
-
* @property {
|
|
59
|
+
* @property {VectorTileSourceType} [source] Source.
|
|
59
60
|
* @property {import("../Map.js").default} [map] Sets the layer as overlay on a map. The map will not manage
|
|
60
61
|
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
61
62
|
* temporary layers. The standard way to add a layer to a map and have it managed by the map is to
|
|
@@ -90,7 +91,8 @@ import {assert} from '../asserts.js';
|
|
|
90
91
|
* options means that `title` is observable, and has get/set accessors.
|
|
91
92
|
*
|
|
92
93
|
* @param {Options} [options] Options.
|
|
93
|
-
* @
|
|
94
|
+
* @template {import("../source/VectorTile.js").default<import('../Feature').FeatureLike>} VectorTileSourceType
|
|
95
|
+
* @extends {BaseVectorLayer<VectorTileSourceType, CanvasVectorTileLayerRenderer>}
|
|
94
96
|
* @api
|
|
95
97
|
*/
|
|
96
98
|
class VectorTileLayer extends BaseVectorLayer {
|
|
@@ -105,7 +107,7 @@ class VectorTileLayer extends BaseVectorLayer {
|
|
|
105
107
|
delete baseOptions.useInterimTilesOnError;
|
|
106
108
|
|
|
107
109
|
super(
|
|
108
|
-
/** @type {import("./BaseVector.js").Options<
|
|
110
|
+
/** @type {import("./BaseVector.js").Options<VectorTileSourceType>} */ (
|
|
109
111
|
baseOptions
|
|
110
112
|
),
|
|
111
113
|
);
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ export default CanvasTileLayerRenderer;
|
|
|
6
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("../../layer/Tile.js").default<import("../../source/Tile.js").default> | import("../../layer/VectorTile.js").default
|
|
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
|
*/
|
|
@@ -5,11 +5,11 @@ export default CanvasVectorTileLayerRenderer;
|
|
|
5
5
|
* @api
|
|
6
6
|
* @extends {CanvasTileLayerRenderer<import("../../layer/VectorTile.js").default>}
|
|
7
7
|
*/
|
|
8
|
-
declare class CanvasVectorTileLayerRenderer extends CanvasTileLayerRenderer<import("../../layer/VectorTile.js").default
|
|
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,
|
|
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;IAoDD,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;oCA15BmC,gBAAgB"}
|
package/util.js
CHANGED