ol 9.2.5-dev.1717010067861 → 9.2.5-dev.1717260235384
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/VectorRenderTile.d.ts +3 -3
- package/VectorRenderTile.d.ts.map +1 -1
- package/VectorTile.d.ts +19 -16
- package/VectorTile.d.ts.map +1 -1
- package/VectorTile.js +12 -9
- package/dist/ol.js +2 -2
- package/dist/ol.js.map +1 -1
- package/featureloader.d.ts +8 -8
- package/featureloader.d.ts.map +1 -1
- package/featureloader.js +5 -5
- package/format/EsriJSON.d.ts +0 -7
- package/format/EsriJSON.d.ts.map +1 -1
- package/format/Feature.d.ts +10 -10
- package/format/Feature.d.ts.map +1 -1
- package/format/Feature.js +6 -6
- package/format/GeoJSON.d.ts +9 -9
- package/format/GeoJSON.d.ts.map +1 -1
- package/format/GeoJSON.js +22 -17
- package/format/JSONFeature.d.ts +7 -27
- package/format/JSONFeature.d.ts.map +1 -1
- package/format/JSONFeature.js +10 -12
- package/format/MVT.d.ts +12 -12
- package/format/MVT.d.ts.map +1 -1
- package/format/MVT.js +16 -18
- package/format/TextFeature.d.ts +0 -9
- package/format/TextFeature.d.ts.map +1 -1
- package/format/TopoJSON.d.ts +0 -7
- package/format/TopoJSON.d.ts.map +1 -1
- package/format/XMLFeature.d.ts +0 -9
- package/format/XMLFeature.d.ts.map +1 -1
- package/interaction/Draw.d.ts +1 -1
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Modify.d.ts +3 -3
- package/interaction/Modify.d.ts.map +1 -1
- package/interaction/Select.d.ts +1 -2
- package/interaction/Select.d.ts.map +1 -1
- package/layer/BaseVector.d.ts +7 -6
- package/layer/BaseVector.d.ts.map +1 -1
- package/layer/BaseVector.js +6 -4
- package/layer/Graticule.d.ts +3 -2
- package/layer/Graticule.d.ts.map +1 -1
- package/layer/Graticule.js +1 -1
- package/layer/Heatmap.d.ts +8 -7
- package/layer/Heatmap.d.ts.map +1 -1
- package/layer/Heatmap.js +7 -5
- package/layer/Tile.d.ts +2 -2
- package/layer/Tile.js +1 -1
- package/layer/Vector.d.ts +19 -9
- package/layer/Vector.d.ts.map +1 -1
- package/layer/Vector.js +12 -5
- package/layer/VectorImage.d.ts +9 -7
- package/layer/VectorImage.d.ts.map +1 -1
- package/layer/VectorImage.js +6 -4
- package/layer/VectorTile.d.ts +19 -9
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/VectorTile.js +16 -9
- package/package.json +1 -1
- package/renderer/canvas/TileLayer.d.ts +2 -2
- package/renderer/canvas/TileLayer.js +1 -1
- package/renderer/canvas/VectorImageLayer.d.ts +1 -1
- package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorLayer.d.ts +1 -1
- package/renderer/canvas/VectorLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.d.ts +3 -3
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.js +1 -1
- package/source/OGCVectorTile.d.ts +7 -7
- package/source/OGCVectorTile.d.ts.map +1 -1
- package/source/OGCVectorTile.js +3 -3
- package/source/Vector.d.ts +14 -14
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +10 -10
- package/source/VectorTile.d.ts +8 -7
- package/source/VectorTile.d.ts.map +1 -1
- package/source/VectorTile.js +3 -2
- package/util.js +1 -1
package/source/VectorTile.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Sets the loader for a tile.
|
|
3
|
-
* @
|
|
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(
|
|
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
|
|
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<
|
|
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
|
|
1
|
+
{"version":3,"file":"VectorTile.d.ts","sourceRoot":"","sources":["VectorTile.js"],"names":[],"mappings":"AA2eA;;;;;GAKG;AACH,oKAFW,MAAM,QAqBhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAjea,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA9BhC,kBAAkB;AAkBnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,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"}
|
package/source/VectorTile.js
CHANGED
|
@@ -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
|
-
* @
|
|
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