@saifuwei/sdm-gis-engine 0.0.1

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.
Binary file
@@ -0,0 +1,54 @@
1
+ type SdmGisEngineOptions = {
2
+ containerId: string;
3
+ config?: any;
4
+ cesiumBaseUrl?: string;
5
+ };
6
+ type GisSceneSaveData = {
7
+ gisVersionData?: GisSceneSaveData;
8
+ versionData?: GisSceneSaveData;
9
+ data?: GisSceneSaveData;
10
+ urlList?: any[];
11
+ entityLayerList?: any[];
12
+ entityList?: any[];
13
+ ImageLayerConfig?: {
14
+ value?: string;
15
+ color?: string;
16
+ visible?: boolean;
17
+ terrain?: boolean;
18
+ };
19
+ cameraProperty?: {
20
+ lng?: number;
21
+ lat?: number;
22
+ height?: number;
23
+ heading?: number;
24
+ pitch?: number;
25
+ roll?: number;
26
+ minimumZoomDistance?: number;
27
+ maximumZoomDistance?: number;
28
+ };
29
+ simulationList?: any[];
30
+ viewshedData?: {
31
+ data?: any[];
32
+ };
33
+ };
34
+ declare class SdmGisEngine {
35
+ containerId: string;
36
+ config: any;
37
+ cesiumBaseUrl?: string;
38
+ engine: any;
39
+ viewer: any;
40
+ sceneData: GisSceneSaveData | undefined;
41
+ constructor({ containerId, config, cesiumBaseUrl }: SdmGisEngineOptions);
42
+ init(saveData?: GisSceneSaveData, baseUrl?: string): Promise<void>;
43
+ private createConfig;
44
+ dataInit(sceneData?: GisSceneSaveData, baseUrl?: string): Promise<void>;
45
+ private resolveEntityAssetUrls;
46
+ private getViewshedData;
47
+ changeImageLayer(type?: string): any;
48
+ getEntitys(): any;
49
+ getEntityById(id: string): any;
50
+ dispose(): void;
51
+ }
52
+
53
+ export { SdmGisEngine as default };
54
+ export type { SdmGisEngineOptions };