deeptwins-engine-3d 0.1.62 → 0.1.64
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/assets/Build/DeepTwins/Workers/MvtVector.worker.js +1 -0
- package/dist/esm/cameraControl/ModelRoamRealTime.js +6 -1
- package/dist/esm/drawer/index.d.ts +1 -1
- package/dist/esm/graphicLayer/BaseSource.d.ts +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +5 -3
- package/dist/esm/plot/utils/Coordinate.d.ts +1 -1
- package/dist/esm/tileLayer/MvtVectorLoad.d.ts +241 -0
- package/dist/esm/tileLayer/MvtVectorLoad.js +1353 -0
- package/dist/esm/tileLayer/MvtVectorWorkerClient.d.ts +25 -0
- package/dist/esm/tileLayer/MvtVectorWorkerClient.js +126 -0
- package/dist/umd/deeptwins-engine-3d.min.js +1 -1
- package/package.json +2 -3
- package/dist/assets/Build/DeepTwins/Image/compass/pointer-white.png +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";const e=Object.fromEntries(Object.entries({Point:1,MultiPoint:2,LineString:3,MultiLineString:4,Polygon:5,MultiPolygon:6}).map(([e,t])=>[t,e])),t=(new TextEncoder,new TextDecoder);class r{constructor(e){this.bytes=function(e){if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("输入不是可解码的二进制数据。")}(e),this.offset=0}isEnd(){return this.offset>=this.bytes.length}readVarint(){let e=0,t=0;for(;;){if(this.offset>=this.bytes.length)throw new Error("读取 protobuf varint 时遇到意外 EOF。");const r=this.bytes[this.offset];if(this.offset+=1,e+=(127&r)*2**t,!(128&r))return e;if(t+=7,t>49)throw new Error("protobuf varint 超出当前实现支持范围。")}}readDouble(){if(this.offset+8>this.bytes.length)throw new Error("读取 protobuf double 时遇到意外 EOF。");const e=new DataView(this.bytes.buffer,this.bytes.byteOffset+this.offset,8).getFloat64(0,!0);return this.offset+=8,e}readBytes(){const e=this.readVarint(),t=this.offset+e;if(t>this.bytes.length)throw new Error("读取 protobuf bytes 时遇到意外 EOF。");const r=this.bytes.slice(this.offset,t);return this.offset=t,r}readString(){return t.decode(this.readBytes())}readTag(){const e=this.readVarint();return{fieldNumber:e>>3,wireType:7&e}}skip(e){switch(e){case 0:return void this.readVarint();case 1:if(this.offset+8>this.bytes.length)throw new Error("跳过 protobuf fixed64 时遇到意外 EOF。");return void(this.offset+=8);case 2:{const e=this.readVarint();if(this.offset+e>this.bytes.length)throw new Error("跳过 protobuf bytes 时遇到意外 EOF。");return void(this.offset+=e)}default:throw new Error(`不支持跳过的 protobuf wire type:${e}`)}}}function s(e){const t=new r(e),s=[];let i;for(;!t.isEnd();){const{fieldNumber:e,wireType:r}=t.readTag();1!==e||1!==r?2!==e||1!==r?3!==e||1!==r?t.skip(r):i=t.readDouble():s[1]=t.readDouble():s[0]=t.readDouble()}if(!Number.isFinite(s[0])||!Number.isFinite(s[1]))throw new Error("解码 Position 失败:缺少合法经纬度。");return void 0===i?s:[s[0],s[1],i]}function i(e){const t=new r(e),i=[];for(;!t.isEnd();){const{fieldNumber:e,wireType:r}=t.readTag();1!==e||2!==r?t.skip(r):i.push(s(t.readBytes()))}return i}function o(e){const t=new r(e),i=[];for(;!t.isEnd();){const{fieldNumber:e,wireType:r}=t.readTag();1!==e||2!==r?t.skip(r):i.push(s(t.readBytes()))}return i}function n(e){const t=new r(e),s=[];for(;!t.isEnd();){const{fieldNumber:e,wireType:r}=t.readTag();1!==e||2!==r?t.skip(r):s.push(o(t.readBytes()))}return s}function a(t){const o=new r(t),a={type:"Feature",id:0,properties:{},geometry:{type:"Point",coordinates:[]}},f=[],u=[],d=[];let y=0,c="{}";for(;!o.isEnd();){const{fieldNumber:e,wireType:t}=o.readTag();1!==e||0!==t?2!==e||0!==t?3!==e||2!==t?4!==e||2!==t?5!==e||2!==t?6!==e||2!==t?o.skip(t):d.push(n(o.readBytes())):u.push(i(o.readBytes())):f.push(s(o.readBytes())):c=o.readString():y=o.readVarint():a.id=o.readVarint()}try{a.properties=JSON.parse(c||"{}")}catch(e){throw new Error(`解码 feature 失败:properties 不是合法 JSON:${e.message}`)}const h=e[y];if(!h)throw new Error(`解码 feature 失败:未知 geometryType=${y}`);switch(h){case"Point":a.geometry={type:"Point",coordinates:f[0]};break;case"MultiPoint":a.geometry={type:"MultiPoint",coordinates:f};break;case"LineString":a.geometry={type:"LineString",coordinates:u[0]||[]};break;case"MultiLineString":a.geometry={type:"MultiLineString",coordinates:u};break;case"Polygon":a.geometry={type:"Polygon",coordinates:d[0]||[]};break;case"MultiPolygon":a.geometry={type:"MultiPolygon",coordinates:d};break;default:throw new Error(`解码 feature 失败:未知几何类型 ${h}`)}return a}function f(e){const t=new r(e),s={version:1,z:0,x:0,y:0,features:[]};for(;!t.isEnd();){const{fieldNumber:e,wireType:r}=t.readTag();1!==e||0!==r?2!==e||0!==r?3!==e||0!==r?4!==e||0!==r?5!==e||2!==r?t.skip(r):s.features.push(a(t.readBytes())):s.y=t.readVarint():s.x=t.readVarint():s.z=t.readVarint():s.version=t.readVarint()}return s}const u=self;u.onmessage=e=>{const{id:t,buffer:r}=e.data;try{u.postMessage({id:t,raw:f(r)})}catch(e){u.postMessage({id:t,error:e instanceof Error&&e.message?e.message:"MVT 解码失败"})}}})();
|
|
@@ -235,6 +235,11 @@ var ModelRoamRealTime = /*#__PURE__*/function () {
|
|
|
235
235
|
// 检查是否与上一个位置相同
|
|
236
236
|
var lastPos = this.receivedPositions[this.receivedPositions.length - 1];
|
|
237
237
|
if (this.isSamePosition(newPosition, lastPos)) {
|
|
238
|
+
// 同位置数据只刷新最后一次采样时间,避免静止时长被并入下一段移动时间
|
|
239
|
+
if (newPosition.timestamp >= lastPos.timestamp) {
|
|
240
|
+
lastPos.timestamp = newPosition.timestamp;
|
|
241
|
+
lastPos.alt = newPosition.alt;
|
|
242
|
+
}
|
|
238
243
|
return;
|
|
239
244
|
}
|
|
240
245
|
|
|
@@ -269,7 +274,7 @@ var ModelRoamRealTime = /*#__PURE__*/function () {
|
|
|
269
274
|
var endC3 = Cesium.Cartesian3.fromDegrees(endPos.lng, endPos.lat, endPos.alt);
|
|
270
275
|
|
|
271
276
|
// 计算飞行时间
|
|
272
|
-
var flightTime = (endPos.timestamp - startPos.timestamp) / 1000;
|
|
277
|
+
var flightTime = Math.max(0, (endPos.timestamp - startPos.timestamp) / 1000);
|
|
273
278
|
|
|
274
279
|
// 计算插值点
|
|
275
280
|
var interpolatedPoints = this._getInterPosition(startC3, endC3, flightTime);
|
|
@@ -18,7 +18,7 @@ export declare const MULTI_POINT_SHAPE_TYPES: {
|
|
|
18
18
|
readonly POLYLINE: "polyline";
|
|
19
19
|
readonly POLYGON: "polygon";
|
|
20
20
|
};
|
|
21
|
-
export declare const MULTI_POINT_SHAPES: ("
|
|
21
|
+
export declare const MULTI_POINT_SHAPES: ("polyline" | "polygon")[];
|
|
22
22
|
declare class Drawer implements DrawContext {
|
|
23
23
|
private readonly _mapContext;
|
|
24
24
|
private readonly _drawContext;
|
|
@@ -15,7 +15,7 @@ export default class BaseSource {
|
|
|
15
15
|
remove(): void;
|
|
16
16
|
setData(data: any): this | undefined;
|
|
17
17
|
_toDestroy(): void;
|
|
18
|
-
static analysisSourceType(data: any): "
|
|
18
|
+
static analysisSourceType(data: any): "clampedPolygonGrid" | "wkt" | "sourceId" | "sourceInstance" | "geoJson" | "other";
|
|
19
19
|
static wktToGeoJon(wkt: string): any;
|
|
20
20
|
static geoJsonToGeoCartesian3Array(geoJson: any): any[];
|
|
21
21
|
static handleFeaturePoint(feature: any): any;
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -20,9 +20,9 @@ import DeepTwins from "./deepTwins";
|
|
|
20
20
|
import Drawer from "./drawer/index";
|
|
21
21
|
import "./global.css";
|
|
22
22
|
import BarrierLayer from "./lowAltitude/BarrierLayer";
|
|
23
|
+
import FactorLayer from "./lowAltitude/FactorLayer";
|
|
23
24
|
import FlightPlanning from "./lowAltitude/FlightPlanning";
|
|
24
25
|
import FlightRiskEvaluation from "./lowAltitude/FlightRiskEvaluation";
|
|
25
|
-
import FactorLayer from "./lowAltitude/FactorLayer";
|
|
26
26
|
import GridDraw from "./lowAltitude/GridDraw";
|
|
27
27
|
import PoiLayer from "./lowAltitude/PoiLayer";
|
|
28
28
|
import VisitLayer from "./lowAltitude/VisitLayer";
|
|
@@ -40,6 +40,7 @@ import ImageMaterialAppearance from "./material/primitive/ImageMaterialAppearanc
|
|
|
40
40
|
import Measure from "./measure";
|
|
41
41
|
import PositionProperty from "./property/PositionProperty";
|
|
42
42
|
import ArcGisLayer from "./tileLayer/ArcGisLayer";
|
|
43
|
+
import MvtVectorLoad from "./tileLayer/MvtVectorLoad";
|
|
43
44
|
import RasterLayer from "./tileLayer/RasterLayer";
|
|
44
45
|
import WmsLayer from "./tileLayer/WmsLayer";
|
|
45
46
|
import WmtsLayer from "./tileLayer/WmtsLayer";
|
|
@@ -63,11 +64,11 @@ DEEP_TWINS_BASE_URL && (window.CESIUM_BASE_URL = DEEP_TWINS_BASE_URL);
|
|
|
63
64
|
// 全局加载css
|
|
64
65
|
loadCss(Cesium.buildModuleUrl('Widgets/widgets.css'));
|
|
65
66
|
// 打印版本信息
|
|
66
|
-
console.log('DeepTwinsEngine3D Version:', "0.1.
|
|
67
|
+
console.log('DeepTwinsEngine3D Version:', "0.1.64");
|
|
67
68
|
export var DeepTwinsEngine3D = /*#__PURE__*/_createClass(function DeepTwinsEngine3D() {
|
|
68
69
|
_classCallCheck(this, DeepTwinsEngine3D);
|
|
69
70
|
});
|
|
70
|
-
_defineProperty(DeepTwinsEngine3D, "Version", "0.1.
|
|
71
|
+
_defineProperty(DeepTwinsEngine3D, "Version", "0.1.64");
|
|
71
72
|
_defineProperty(DeepTwinsEngine3D, "Map", Map);
|
|
72
73
|
_defineProperty(DeepTwinsEngine3D, "GroundSkyBox", GroundSkyBox);
|
|
73
74
|
_defineProperty(DeepTwinsEngine3D, "RasterLayer", RasterLayer);
|
|
@@ -142,4 +143,5 @@ _defineProperty(DeepTwinsEngine3D, "BuildClampedPolygonGridUnified", BuildClampe
|
|
|
142
143
|
_defineProperty(DeepTwinsEngine3D, "ViewShedAnalyserLayer", ViewShedAnalyserLayer);
|
|
143
144
|
_defineProperty(DeepTwinsEngine3D, "VolumeClouds", VolumeClouds);
|
|
144
145
|
_defineProperty(DeepTwinsEngine3D, "ToolTip", ToolTip);
|
|
146
|
+
_defineProperty(DeepTwinsEngine3D, "MvtVectorLoad", MvtVectorLoad);
|
|
145
147
|
export default DeepTwinsEngine3D;
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import * as Cesium from 'deeptwins-cesium';
|
|
2
|
+
import { MapContext } from '../map/Map';
|
|
3
|
+
type TileState = 'none' | 'loading' | 'loaded' | 'error';
|
|
4
|
+
interface VectorLoadOptions {
|
|
5
|
+
url: string;
|
|
6
|
+
minzoom?: number;
|
|
7
|
+
maxzoom?: number;
|
|
8
|
+
maxCacheSize?: number;
|
|
9
|
+
autoDisplayLayers?: boolean;
|
|
10
|
+
decodeWithWorker?: boolean;
|
|
11
|
+
workerUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
type DecodedTileCoordinate = [number, number] | [number, number, number];
|
|
14
|
+
interface DecodedPointGeometry {
|
|
15
|
+
type: 'Point';
|
|
16
|
+
coordinates: DecodedTileCoordinate;
|
|
17
|
+
}
|
|
18
|
+
interface DecodedMultiPointGeometry {
|
|
19
|
+
type: 'MultiPoint';
|
|
20
|
+
coordinates: DecodedTileCoordinate[];
|
|
21
|
+
}
|
|
22
|
+
interface DecodedLineStringGeometry {
|
|
23
|
+
type: 'LineString';
|
|
24
|
+
coordinates: DecodedTileCoordinate[];
|
|
25
|
+
}
|
|
26
|
+
interface DecodedMultiLineStringGeometry {
|
|
27
|
+
type: 'MultiLineString';
|
|
28
|
+
coordinates: DecodedTileCoordinate[][];
|
|
29
|
+
}
|
|
30
|
+
interface DecodedPolygonGeometry {
|
|
31
|
+
type: 'Polygon';
|
|
32
|
+
coordinates: DecodedTileCoordinate[][];
|
|
33
|
+
}
|
|
34
|
+
interface DecodedMultiPolygonGeometry {
|
|
35
|
+
type: 'MultiPolygon';
|
|
36
|
+
coordinates: DecodedTileCoordinate[][][];
|
|
37
|
+
}
|
|
38
|
+
type DecodedTileGeometry = DecodedPointGeometry | DecodedMultiPointGeometry | DecodedLineStringGeometry | DecodedMultiLineStringGeometry | DecodedPolygonGeometry | DecodedMultiPolygonGeometry;
|
|
39
|
+
interface DecodedTileFeature {
|
|
40
|
+
type: 'Feature';
|
|
41
|
+
id: number;
|
|
42
|
+
properties: Record<string, unknown>;
|
|
43
|
+
geometry: DecodedTileGeometry;
|
|
44
|
+
}
|
|
45
|
+
interface DecodedTile {
|
|
46
|
+
version: number;
|
|
47
|
+
z: number;
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
features: DecodedTileFeature[];
|
|
51
|
+
}
|
|
52
|
+
interface LoadedTile {
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
z: number;
|
|
56
|
+
raw: DecodedTile;
|
|
57
|
+
}
|
|
58
|
+
interface EvictedTile {
|
|
59
|
+
key: string;
|
|
60
|
+
x: number;
|
|
61
|
+
y: number;
|
|
62
|
+
z: number;
|
|
63
|
+
}
|
|
64
|
+
interface TileDisplayChange {
|
|
65
|
+
key: string;
|
|
66
|
+
x: number;
|
|
67
|
+
y: number;
|
|
68
|
+
z: number;
|
|
69
|
+
display: 'show' | 'hide';
|
|
70
|
+
}
|
|
71
|
+
interface ManagedTileLayer {
|
|
72
|
+
show(isShow: boolean): void;
|
|
73
|
+
remove(): void;
|
|
74
|
+
isDestroyed?: boolean | (() => boolean);
|
|
75
|
+
}
|
|
76
|
+
type TileLoadLayerResult = ManagedTileLayer | ManagedTileLayer[] | void | null;
|
|
77
|
+
type TileLoadLayerHandlerResult = TileLoadLayerResult | Promise<TileLoadLayerResult>;
|
|
78
|
+
declare const MVT_VECTOR_LOAD_EVENT_TYPES: readonly ["ready", "error", "tileLoad", "tileDisplay", "tileEvict"];
|
|
79
|
+
type MvtVectorLoadEventType = (typeof MVT_VECTOR_LOAD_EVENT_TYPES)[number];
|
|
80
|
+
interface MvtVectorLoadEventHandlerMap {
|
|
81
|
+
ready(loader: MvtVectorLoad): void;
|
|
82
|
+
error(error: Error): void;
|
|
83
|
+
tileLoad(tile: LoadedTile): TileLoadLayerHandlerResult;
|
|
84
|
+
tileDisplay(change: TileDisplayChange): void;
|
|
85
|
+
tileEvict(tile: EvictedTile): void;
|
|
86
|
+
}
|
|
87
|
+
interface MvtVectorLoadEventSubscription {
|
|
88
|
+
off(): void;
|
|
89
|
+
}
|
|
90
|
+
interface TileGeoJSONResult {
|
|
91
|
+
x: number;
|
|
92
|
+
y: number;
|
|
93
|
+
z: number;
|
|
94
|
+
geoJson: {
|
|
95
|
+
type: 'FeatureCollection';
|
|
96
|
+
features: DecodedTileFeature[];
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
interface FrameStateLike {
|
|
100
|
+
context: {
|
|
101
|
+
drawingBufferHeight: number;
|
|
102
|
+
};
|
|
103
|
+
camera: {
|
|
104
|
+
frustum: {
|
|
105
|
+
sseDenominator: number;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
fog: {
|
|
109
|
+
enabled: boolean;
|
|
110
|
+
density: number;
|
|
111
|
+
sse: number;
|
|
112
|
+
};
|
|
113
|
+
pixelRatio: number;
|
|
114
|
+
maximumScreenSpaceError: number;
|
|
115
|
+
cullingVolume: {
|
|
116
|
+
computeVisibility: (boundingVolume: unknown) => Cesium.Intersect;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
interface TileBoundingRegionLike {
|
|
120
|
+
distanceToCamera(frameState: FrameStateLike): number;
|
|
121
|
+
}
|
|
122
|
+
interface VectorLoadTileOptions {
|
|
123
|
+
x: number;
|
|
124
|
+
y: number;
|
|
125
|
+
z: number;
|
|
126
|
+
tilingScheme: Cesium.WebMercatorTilingScheme;
|
|
127
|
+
parent: MvtVectorLoad;
|
|
128
|
+
}
|
|
129
|
+
interface TileVisitor {
|
|
130
|
+
visitChildren(tile: VectorLoadTile): void;
|
|
131
|
+
accept(tile: VectorLoadTile): void;
|
|
132
|
+
}
|
|
133
|
+
type ScreenSpaceErrorCalculator = (frameState: FrameStateLike, tile: VectorLoadTile) => number;
|
|
134
|
+
declare class MvtVectorLoad {
|
|
135
|
+
private readonly _mapContext;
|
|
136
|
+
url: string;
|
|
137
|
+
minzoom: number;
|
|
138
|
+
maximumLevel: number;
|
|
139
|
+
maxCacheSize: number;
|
|
140
|
+
ready: boolean;
|
|
141
|
+
zoom: number;
|
|
142
|
+
readonly tilingScheme: Cesium.WebMercatorTilingScheme;
|
|
143
|
+
readonly readyEvent: Cesium.Event<(loader: MvtVectorLoad) => void>;
|
|
144
|
+
readonly errorEvent: Cesium.Event<(error: Error) => void>;
|
|
145
|
+
readonly tileLoadEvent: Cesium.Event<(tile: LoadedTile) => TileLoadLayerHandlerResult>;
|
|
146
|
+
readonly tileDisplayEvent: Cesium.Event<(change: TileDisplayChange) => void>;
|
|
147
|
+
readonly tileEvictEvent: Cesium.Event<(tile: EvictedTile) => void>;
|
|
148
|
+
_destroyed: boolean;
|
|
149
|
+
_initPromise: Promise<MvtVectorLoad> | null;
|
|
150
|
+
_rootTiles: VectorLoadTile[];
|
|
151
|
+
_tilesToUpdate: VectorLoadTile[];
|
|
152
|
+
_loadedTiles: Record<string, LoadedTile>;
|
|
153
|
+
_pendingTiles: Map<string, Promise<LoadedTile>>;
|
|
154
|
+
private _cacheOrder;
|
|
155
|
+
_requestToken: number;
|
|
156
|
+
private _levelZeroMaximumGeometricError;
|
|
157
|
+
private _decodeWithWorker;
|
|
158
|
+
private _autoDisplayLayers;
|
|
159
|
+
private _workerUrl;
|
|
160
|
+
private _decodeWorkerClient;
|
|
161
|
+
private _listenerRegistry;
|
|
162
|
+
private _displayedTiles;
|
|
163
|
+
private _managedTileLayers;
|
|
164
|
+
private _addedToMap;
|
|
165
|
+
constructor(map: MapContext, options?: Partial<VectorLoadOptions>);
|
|
166
|
+
getMap(): any;
|
|
167
|
+
private _addToMap;
|
|
168
|
+
private _removeFromMap;
|
|
169
|
+
init(): Promise<MvtVectorLoad>;
|
|
170
|
+
on<K extends MvtVectorLoadEventType>(type: K, handler: MvtVectorLoadEventHandlerMap[K]): MvtVectorLoadEventSubscription;
|
|
171
|
+
private _wrapEventHandler;
|
|
172
|
+
off<K extends MvtVectorLoadEventType>(type: K, handler: MvtVectorLoadEventHandlerMap[K]): void;
|
|
173
|
+
private _getEventByType;
|
|
174
|
+
private _createInvalidEventTypeError;
|
|
175
|
+
private _removeRegisteredListener;
|
|
176
|
+
private _clearListenerRegistry;
|
|
177
|
+
private _doInit;
|
|
178
|
+
private _validateOptions;
|
|
179
|
+
private _emitError;
|
|
180
|
+
private _createRootTiles;
|
|
181
|
+
private _getTileKey;
|
|
182
|
+
private _touchTileCache;
|
|
183
|
+
private _pruneLoadedTiles;
|
|
184
|
+
private _getTilesToUpdate;
|
|
185
|
+
private _toDisplayedTileState;
|
|
186
|
+
private _isTileLoaded;
|
|
187
|
+
private _isSameOrAncestorTile;
|
|
188
|
+
private _tilesOverlap;
|
|
189
|
+
private _shouldKeepDisplayedTile;
|
|
190
|
+
private _shouldDelayTargetTileDisplay;
|
|
191
|
+
private _raiseTileDisplayChange;
|
|
192
|
+
private _syncTileDisplayState;
|
|
193
|
+
private _hideAllDisplayedTiles;
|
|
194
|
+
private _isManagedTileLayer;
|
|
195
|
+
private _normalizeManagedTileLayers;
|
|
196
|
+
private _registerManagedTileLayers;
|
|
197
|
+
private _isManagedTileLayerDestroyed;
|
|
198
|
+
private _applyManagedTileLayersDisplay;
|
|
199
|
+
private _setManagedTileLayersDisplay;
|
|
200
|
+
private _removeManagedTileLayers;
|
|
201
|
+
private _removeAllManagedTileLayers;
|
|
202
|
+
private _getLevelMaximumGeometricError;
|
|
203
|
+
private _resetTileStatesByKeys;
|
|
204
|
+
private _getScreenSpaceError;
|
|
205
|
+
private _buildTileUrl;
|
|
206
|
+
private _toError;
|
|
207
|
+
private _getDecodeWorkerClient;
|
|
208
|
+
private _destroyDecodeWorkerClient;
|
|
209
|
+
private _decodeTile;
|
|
210
|
+
private _requestTile;
|
|
211
|
+
private _loadTile;
|
|
212
|
+
tileToGeoJSON(tile: LoadedTile): TileGeoJSONResult;
|
|
213
|
+
update(frameState: FrameStateLike): void;
|
|
214
|
+
private _updateTiles;
|
|
215
|
+
private _loadVisibleTile;
|
|
216
|
+
getLoadedTiles(): LoadedTile[];
|
|
217
|
+
getTile(x: number, y: number, z: number): LoadedTile | undefined;
|
|
218
|
+
clearCache(): void;
|
|
219
|
+
private _resetTileStates;
|
|
220
|
+
destroy(): void;
|
|
221
|
+
isDestroyed(): boolean;
|
|
222
|
+
}
|
|
223
|
+
declare class VectorLoadTile {
|
|
224
|
+
readonly x: number;
|
|
225
|
+
readonly y: number;
|
|
226
|
+
readonly z: number;
|
|
227
|
+
readonly key: string;
|
|
228
|
+
readonly parent: MvtVectorLoad;
|
|
229
|
+
readonly tilingScheme: Cesium.WebMercatorTilingScheme;
|
|
230
|
+
readonly rectangle: Cesium.Rectangle;
|
|
231
|
+
readonly tileBoundingRegion: TileBoundingRegionLike;
|
|
232
|
+
readonly children: VectorLoadTile[];
|
|
233
|
+
distanceToCamera: number;
|
|
234
|
+
visibility: Cesium.Intersect;
|
|
235
|
+
state: TileState;
|
|
236
|
+
constructor(options: VectorLoadTileOptions);
|
|
237
|
+
createChildren(): void;
|
|
238
|
+
visit(frameState: FrameStateLike, visitor: TileVisitor, getScreenSpaceError: ScreenSpaceErrorCalculator): void;
|
|
239
|
+
}
|
|
240
|
+
export type { EvictedTile, LoadedTile, ManagedTileLayer, MvtVectorLoadEventHandlerMap, MvtVectorLoadEventSubscription, MvtVectorLoadEventType, TileDisplayChange, TileGeoJSONResult, TileLoadLayerHandlerResult, TileLoadLayerResult, };
|
|
241
|
+
export default MvtVectorLoad;
|