@maptalks/vt 0.97.2 → 0.99.0
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/maptalks.vt.d.ts +11 -4
- package/dist/maptalks.vt.es.js +2812 -2804
- package/dist/maptalks.vt.es.js.map +1 -1
- package/dist/maptalks.vt.js +4507 -4451
- package/dist/maptalks.vt.js.map +1 -1
- package/package.json +5 -5
package/dist/maptalks.vt.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @maptalks/vt v0.
|
|
2
|
+
* @maptalks/vt v0.99.0
|
|
3
3
|
* LICENSE : undefined
|
|
4
4
|
* (c) 2016-2024 maptalks.org
|
|
5
5
|
*/
|
|
@@ -159,6 +159,7 @@ declare class VectorTileLayer extends maptalks.TileLayer {
|
|
|
159
159
|
*/
|
|
160
160
|
getFeatureState(source: any): unknown;
|
|
161
161
|
protected _prepareOptions(): void;
|
|
162
|
+
forceReload(): this;
|
|
162
163
|
onWorkerReady(): void;
|
|
163
164
|
/**
|
|
164
165
|
* 更新图层配置。
|
|
@@ -466,7 +467,7 @@ declare class MapboxVectorTileLayer extends VectorTileLayer {
|
|
|
466
467
|
declare class GeoJSONVectorTileLayer extends VectorTileLayer {
|
|
467
468
|
options: GeoJSONVectorTileLayerOptionsType;
|
|
468
469
|
features: Record<string, any>;
|
|
469
|
-
constructor(id: string, options:
|
|
470
|
+
constructor(id: string, options: GeoJSONVectorTileLayerParamOptionsType);
|
|
470
471
|
onAdd(): void;
|
|
471
472
|
protected _prepareOptions(): void;
|
|
472
473
|
getWorkerOptions(): Record<string, any>;
|
|
@@ -477,9 +478,11 @@ declare class GeoJSONVectorTileLayer extends VectorTileLayer {
|
|
|
477
478
|
getTileUrl(x: number, y: number, z: number): string;
|
|
478
479
|
getFeature(id: string): any;
|
|
479
480
|
static fromJSON(layerJSON: LayerJSONType): GeoJSONVectorTileLayer | null;
|
|
481
|
+
getGeometryById(id: number): any;
|
|
480
482
|
}
|
|
481
483
|
|
|
482
|
-
type
|
|
484
|
+
type OmitUrlTemplate = Omit<VectorTileLayerOptionsType, 'urlTemplate'>;
|
|
485
|
+
type OptionsType = {
|
|
483
486
|
features?: string;
|
|
484
487
|
tileBuffer?: number;
|
|
485
488
|
extent?: number;
|
|
@@ -489,7 +492,9 @@ type GeoJSONVectorTileLayerOptionsType = {
|
|
|
489
492
|
generateOMBB?: boolean;
|
|
490
493
|
data?: any;
|
|
491
494
|
convertFn?: (data: any) => any;
|
|
492
|
-
}
|
|
495
|
+
};
|
|
496
|
+
type GeoJSONVectorTileLayerParamOptionsType = OptionsType & OmitUrlTemplate;
|
|
497
|
+
type GeoJSONVectorTileLayerOptionsType = OptionsType & VectorTileLayerOptionsType;
|
|
493
498
|
|
|
494
499
|
/**
|
|
495
500
|
* from mapbox-gl-js
|
|
@@ -719,6 +724,7 @@ declare class TileStencilRenderer {
|
|
|
719
724
|
declare class VectorTileLayerRenderer extends maptalks.renderer.TileLayerCanvasRenderer {
|
|
720
725
|
constructor(layer: any);
|
|
721
726
|
supportRenderMode(): boolean;
|
|
727
|
+
_workerCacheIndex: number;
|
|
722
728
|
ready: boolean;
|
|
723
729
|
_styleCounter: number;
|
|
724
730
|
_requestingMVT: {};
|
|
@@ -756,6 +762,7 @@ declare class VectorTileLayerRenderer extends maptalks.renderer.TileLayerCanvasR
|
|
|
756
762
|
};
|
|
757
763
|
_prepareWorker(): void;
|
|
758
764
|
_workerConn: WorkerConnection;
|
|
765
|
+
_incrWorkerCacheIndex(): void;
|
|
759
766
|
checkResources(): any[];
|
|
760
767
|
_drawTiles(tiles: any, parentTiles: any, childTiles: any, placeholders: any, context: any): void;
|
|
761
768
|
_deletePrevPlugins(): void;
|