ol 9.2.1 → 9.2.2-dev.1716040147863
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/VectorTile.d.ts +3 -3
- package/VectorTile.d.ts.map +1 -1
- package/VectorTile.js +2 -2
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/featureloader.d.ts +2 -2
- package/featureloader.d.ts.map +1 -1
- package/featureloader.js +1 -1
- package/format/Feature.d.ts +13 -13
- package/format/Feature.d.ts.map +1 -1
- package/format/Feature.js +7 -7
- package/format/MVT.d.ts +0 -5
- package/format/MVT.d.ts.map +1 -1
- package/format/MVT.js +5 -9
- package/layer/Vector.d.ts +157 -2
- package/layer/Vector.d.ts.map +1 -1
- package/layer/Vector.js +51 -1
- package/layer/VectorTile.d.ts +133 -7
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/VectorTile.js +8 -11
- package/package.json +1 -1
- package/source/OGCVectorTile.d.ts +9 -6
- package/source/OGCVectorTile.d.ts.map +1 -1
- package/source/OGCVectorTile.js +5 -2
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +1 -4
- package/source/VectorTile.d.ts +4 -4
- package/source/VectorTile.d.ts.map +1 -1
- package/source/VectorTile.js +2 -2
- package/util.d.ts.map +1 -1
- package/util.js +1 -1
|
@@ -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,W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G;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"}
|
package/layer/VectorTile.js
CHANGED
|
@@ -21,8 +21,8 @@ import {assert} from '../asserts.js';
|
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
+
* @template {import('../Feature').FeatureLike} FeatureType
|
|
24
25
|
* @typedef {Object} Options
|
|
25
|
-
* @template {import("../source/VectorTile.js").default<import('../Feature').FeatureLike>} VectorTileSourceType
|
|
26
26
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
27
27
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
28
28
|
* @property {boolean} [visible=true] Visibility.
|
|
@@ -56,7 +56,7 @@ import {assert} from '../asserts.js';
|
|
|
56
56
|
* this mode for improved performance and visual epxerience on vector tile layers with not too many
|
|
57
57
|
* rendered features (e.g. for highlighting a subset of features of another layer with the same
|
|
58
58
|
* source).
|
|
59
|
-
* @property {
|
|
59
|
+
* @property {import("../source/VectorTile.js").default<FeatureType>} [source] Source.
|
|
60
60
|
* @property {import("../Map.js").default} [map] Sets the layer as overlay on a map. The map will not manage
|
|
61
61
|
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
62
62
|
* temporary layers. The standard way to add a layer to a map and have it managed by the map is to
|
|
@@ -69,7 +69,7 @@ import {assert} from '../asserts.js';
|
|
|
69
69
|
* @property {import("../style/Style.js").StyleLike|null} [style] Layer style. When set to `null`, only
|
|
70
70
|
* features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
|
|
71
71
|
* which will be used if this is not set.
|
|
72
|
-
* @property {import("./Base.js").BackgroundColor
|
|
72
|
+
* @property {import("./Base.js").BackgroundColor} [background] Background color for the layer. If not specified, no
|
|
73
73
|
* background will be rendered.
|
|
74
74
|
* @property {boolean} [updateWhileAnimating=false] When set to `true`, feature batches will be
|
|
75
75
|
* recreated during animations. This means that no vectors will be shown clipped, but the setting
|
|
@@ -90,27 +90,24 @@ import {assert} from '../asserts.js';
|
|
|
90
90
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
91
91
|
* options means that `title` is observable, and has get/set accessors.
|
|
92
92
|
*
|
|
93
|
-
* @param {Options} [options] Options.
|
|
94
93
|
* @template {import('../Feature').FeatureLike} FeatureType
|
|
95
94
|
* @extends {BaseVectorLayer<import("../source/VectorTile.js").default<FeatureType>, CanvasVectorTileLayerRenderer>}
|
|
96
95
|
* @api
|
|
97
96
|
*/
|
|
98
97
|
class VectorTileLayer extends BaseVectorLayer {
|
|
99
98
|
/**
|
|
100
|
-
* @param {Options} [options] Options.
|
|
99
|
+
* @param {Options<FeatureType>} [options] Options.
|
|
101
100
|
*/
|
|
102
101
|
constructor(options) {
|
|
103
102
|
options = options ? options : {};
|
|
104
103
|
|
|
105
|
-
const baseOptions = /** @type {
|
|
104
|
+
const baseOptions = /** @type {Options<FeatureType>} */ (
|
|
105
|
+
Object.assign({}, options)
|
|
106
|
+
);
|
|
106
107
|
delete baseOptions.preload;
|
|
107
108
|
delete baseOptions.useInterimTilesOnError;
|
|
108
109
|
|
|
109
|
-
super(
|
|
110
|
-
/** @type {import("./BaseVector.js").Options<import("../source/VectorTile.js").default<FeatureType>>} */ (
|
|
111
|
-
baseOptions
|
|
112
|
-
),
|
|
113
|
-
);
|
|
110
|
+
super(baseOptions);
|
|
114
111
|
|
|
115
112
|
/***
|
|
116
113
|
* @type {VectorTileLayerOnSignature<import("../events").EventsKey>}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default OGCVectorTile;
|
|
2
|
-
export type Options = {
|
|
2
|
+
export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
3
3
|
/**
|
|
4
4
|
* URL to the OGC Vector Tileset endpoint.
|
|
5
5
|
*/
|
|
@@ -12,7 +12,7 @@ export type Options = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Feature parser for tiles.
|
|
14
14
|
*/
|
|
15
|
-
format: import("../format/Feature.js").default
|
|
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,11 +70,12 @@ export type Options = {
|
|
|
70
70
|
collections?: string[] | undefined;
|
|
71
71
|
};
|
|
72
72
|
/**
|
|
73
|
+
* @template {import("../Feature.js").FeatureLike} FeatureType
|
|
73
74
|
* @typedef {Object} Options
|
|
74
75
|
* @property {string} url URL to the OGC Vector Tileset endpoint.
|
|
75
76
|
* @property {Object} [context] A lookup of values to use in the tile URL template. The `{tileMatrix}`
|
|
76
77
|
* (zoom level), `{tileRow}`, and `{tileCol}` variables in the URL will always be provided by the source.
|
|
77
|
-
* @property {import("../format/Feature.js").default} format Feature parser for tiles.
|
|
78
|
+
* @property {import("../format/Feature.js").default<import('../format/Feature.js').FeatureToFeatureClass<FeatureType>>} format Feature parser for tiles.
|
|
78
79
|
* @property {string} [mediaType] The content type for the tiles (e.g. "application/vnd.mapbox-vector-tile"). If not provided,
|
|
79
80
|
* the source will try to find a link with rel="item" that uses a vector type supported by the configured format.
|
|
80
81
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
@@ -111,12 +112,14 @@ export type Options = {
|
|
|
111
112
|
* which of the advertised media types is used. If you need to force the use of a particular media type, you can
|
|
112
113
|
* provide the `mediaType` option.
|
|
113
114
|
* @api
|
|
115
|
+
* @template {import("../Feature.js").FeatureLike} FeatureType
|
|
116
|
+
* @extends {VectorTileSource<FeatureType>}
|
|
114
117
|
*/
|
|
115
|
-
declare class OGCVectorTile extends
|
|
118
|
+
declare class OGCVectorTile<FeatureType extends import("../Feature.js").FeatureLike> extends VectorTileSource<FeatureType> {
|
|
116
119
|
/**
|
|
117
|
-
* @param {Options} options OGC vector tile options.
|
|
120
|
+
* @param {Options<FeatureType>} options OGC vector tile options.
|
|
118
121
|
*/
|
|
119
|
-
constructor(options: Options);
|
|
122
|
+
constructor(options: Options<FeatureType>);
|
|
120
123
|
/**
|
|
121
124
|
* @param {import("./ogcTileUtil.js").TileSetInfo} tileSetInfo Tile set info.
|
|
122
125
|
* @private
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OGCVectorTile.d.ts","sourceRoot":"","sources":["OGCVectorTile.js"],"names":[],"mappings":";;;;;
|
|
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"}
|
package/source/OGCVectorTile.js
CHANGED
|
@@ -7,11 +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
|
|
10
11
|
* @typedef {Object} Options
|
|
11
12
|
* @property {string} url URL to the OGC Vector Tileset endpoint.
|
|
12
13
|
* @property {Object} [context] A lookup of values to use in the tile URL template. The `{tileMatrix}`
|
|
13
14
|
* (zoom level), `{tileRow}`, and `{tileCol}` variables in the URL will always be provided by the source.
|
|
14
|
-
* @property {import("../format/Feature.js").default} format Feature parser for tiles.
|
|
15
|
+
* @property {import("../format/Feature.js").default<import('../format/Feature.js').FeatureToFeatureClass<FeatureType>>} format Feature parser for tiles.
|
|
15
16
|
* @property {string} [mediaType] The content type for the tiles (e.g. "application/vnd.mapbox-vector-tile"). If not provided,
|
|
16
17
|
* the source will try to find a link with rel="item" that uses a vector type supported by the configured format.
|
|
17
18
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
@@ -49,10 +50,12 @@ import {error as logError} from '../console.js';
|
|
|
49
50
|
* which of the advertised media types is used. If you need to force the use of a particular media type, you can
|
|
50
51
|
* provide the `mediaType` option.
|
|
51
52
|
* @api
|
|
53
|
+
* @template {import("../Feature.js").FeatureLike} FeatureType
|
|
54
|
+
* @extends {VectorTileSource<FeatureType>}
|
|
52
55
|
*/
|
|
53
56
|
class OGCVectorTile extends VectorTileSource {
|
|
54
57
|
/**
|
|
55
|
-
* @param {Options} options OGC vector tile options.
|
|
58
|
+
* @param {Options<FeatureType>} options OGC vector tile options.
|
|
56
59
|
*/
|
|
57
60
|
constructor(options) {
|
|
58
61
|
super({
|
package/source/Vector.d.ts.map
CHANGED
|
@@ -1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Ac,EAAE,MAAM,cAC7B,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,QAiDjD;IAQD;;;;OAIG;IACH,2BAHW,OAAO,cAAc,EAAE,MAAM,QAevC;IAED;;;;;;OAMG;IACH,yBAHW,MAAM,WAAW,CAAC,QAe5B;IAED;;;;;;OAMG;IACH,uBAHW,WAAW,QAWrB;IAED;;;;;;OAMG;IACH,yCALW,WAAW,GACV,WAAW,GAAC,SAAS,CA0ChC;IAED;;;;;;OAMG;IACH,2BAiBC;IAED;;;;;OAKG;IACH,kBAHW,OAAO,qBAAqB,EAAE,aAAa,CAAC,WAAW,CAAC,QAKlE;IAED;;;;OAIG;IACH,YAHW,MAAM,GAAC,OAAO,qBAAqB,EAAE,kBAAkB,QAOjE;CACF;0BArqCyB,sBAAsB;uBANzB,kBAAkB;mBAOtB,aAAa"}
|
package/source/Vector.js
CHANGED
|
@@ -238,10 +238,7 @@ class VectorSource extends Source {
|
|
|
238
238
|
} else if (this.url_ !== undefined) {
|
|
239
239
|
assert(this.format_, '`format` must be set when `url` is set');
|
|
240
240
|
// create a XHR feature loader for "url" and "format"
|
|
241
|
-
this.loader_ = xhr(
|
|
242
|
-
this.url_,
|
|
243
|
-
/** @type {import("../format/Feature.js").default} */ (this.format_),
|
|
244
|
-
);
|
|
241
|
+
this.loader_ = xhr(this.url_, this.format_);
|
|
245
242
|
}
|
|
246
243
|
|
|
247
244
|
/**
|
package/source/VectorTile.d.ts
CHANGED
|
@@ -206,9 +206,9 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
206
206
|
*
|
|
207
207
|
* @fires import("./Tile.js").TileSourceEvent
|
|
208
208
|
* @api
|
|
209
|
-
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
|
|
209
|
+
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../render/Feature.js").default]
|
|
210
210
|
*/
|
|
211
|
-
declare class VectorTile<FeatureType extends import("../Feature.js").FeatureLike = import("../Feature.js").default
|
|
211
|
+
declare class VectorTile<FeatureType extends import("../Feature.js").FeatureLike = import("../render/Feature.js").default> extends UrlTile {
|
|
212
212
|
/**
|
|
213
213
|
* @param {!Options<FeatureType>} options Vector tile options.
|
|
214
214
|
*/
|
|
@@ -247,10 +247,10 @@ declare class VectorTile<FeatureType extends import("../Feature.js").FeatureLike
|
|
|
247
247
|
* they can be clipped, duplicated across tiles, and simplified to the render resolution.
|
|
248
248
|
*
|
|
249
249
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
250
|
-
* @return {Array<
|
|
250
|
+
* @return {Array<FeatureType>} Features.
|
|
251
251
|
* @api
|
|
252
252
|
*/
|
|
253
|
-
getFeaturesInExtent(extent: import("../extent.js").Extent): Array<
|
|
253
|
+
getFeaturesInExtent(extent: import("../extent.js").Extent): Array<FeatureType>;
|
|
254
254
|
/**
|
|
255
255
|
* @return {boolean} The source can have overlapping geometries.
|
|
256
256
|
*/
|
|
@@ -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,kBAAk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B,cAAc;6BACL,wBAAwB"}
|
package/source/VectorTile.js
CHANGED
|
@@ -99,7 +99,7 @@ import {toSize} from '../size.js';
|
|
|
99
99
|
*
|
|
100
100
|
* @fires import("./Tile.js").TileSourceEvent
|
|
101
101
|
* @api
|
|
102
|
-
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
|
|
102
|
+
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../render/Feature.js").default]
|
|
103
103
|
*/
|
|
104
104
|
class VectorTile extends UrlTile {
|
|
105
105
|
/**
|
|
@@ -180,7 +180,7 @@ class VectorTile extends UrlTile {
|
|
|
180
180
|
* they can be clipped, duplicated across tiles, and simplified to the render resolution.
|
|
181
181
|
*
|
|
182
182
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
183
|
-
* @return {Array<
|
|
183
|
+
* @return {Array<FeatureType>} Features.
|
|
184
184
|
* @api
|
|
185
185
|
*/
|
|
186
186
|
getFeaturesInExtent(extent) {
|
package/util.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,4BAFY,KAAK,CAIhB;AASD;;;;;;;;GAQG;AACH,kCAHY,MAAM,CAKjB;AAED;;;GAGG;AACH,sBAFU,MAAM,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,4BAFY,KAAK,CAIhB;AASD;;;;;;;;GAQG;AACH,kCAHY,MAAM,CAKjB;AAED;;;GAGG;AACH,sBAFU,MAAM,CAEiC"}
|
package/util.js
CHANGED