@xingm/vmap-cesium-toolbar 0.0.1-beta.5 → 0.0.1-beta.7
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/hooks/toolBarConfig.d.ts +55 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +18 -16
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/libs/CesiumMapConfig.d.ts +13 -0
- package/dist/libs/CesiumMapHelper.d.ts +180 -0
- package/dist/libs/CesiumMapLoader.d.ts +53 -0
- package/dist/libs/CesiumMapModel.d.ts +154 -0
- package/dist/libs/CesiumMapToolbar.d.ts +180 -0
- package/dist/package.json +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { SearchResult } from '../libs/CesiumMapModel';
|
|
2
|
+
export declare const useToolBarConfig: (message: any) => {
|
|
3
|
+
toolbarConfig: {
|
|
4
|
+
position: string;
|
|
5
|
+
buttonSize: number;
|
|
6
|
+
buttonSpacing: number;
|
|
7
|
+
borderRadius: number;
|
|
8
|
+
borderWidth: number;
|
|
9
|
+
zIndex: number;
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
buttons: ({
|
|
12
|
+
size: number;
|
|
13
|
+
id: string;
|
|
14
|
+
icon: string;
|
|
15
|
+
title: string;
|
|
16
|
+
color: string;
|
|
17
|
+
borderColor: string;
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
activeIcon?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
size: number;
|
|
22
|
+
id: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
title: string;
|
|
25
|
+
color: string;
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
borderColor?: undefined;
|
|
28
|
+
activeIcon?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
size: number;
|
|
31
|
+
id: string;
|
|
32
|
+
icon: boolean;
|
|
33
|
+
activeIcon: boolean;
|
|
34
|
+
title: string;
|
|
35
|
+
color: string;
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
borderColor?: undefined;
|
|
38
|
+
})[];
|
|
39
|
+
};
|
|
40
|
+
toolbarCallback: {
|
|
41
|
+
search: {
|
|
42
|
+
onSearch: (query: string) => Promise<SearchResult[]>;
|
|
43
|
+
onSelect: (result: SearchResult) => void;
|
|
44
|
+
};
|
|
45
|
+
measurement: {
|
|
46
|
+
onDistanceComplete: (positions: any, distance: any) => void;
|
|
47
|
+
onAreaComplete: (positions: any, area: any) => void;
|
|
48
|
+
onClear: () => void;
|
|
49
|
+
};
|
|
50
|
+
zoom: {
|
|
51
|
+
onZoomIn: (beforeLevel: any, afterLevel: any) => void;
|
|
52
|
+
onZoomOut: (beforeLevel: any, afterLevel: any) => void;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ export interface MapCenter {
|
|
|
100
100
|
|
|
101
101
|
// 初始化选项接口
|
|
102
102
|
export interface InitOptions {
|
|
103
|
+
token?: string;
|
|
103
104
|
terrain?: any; // Cesium.Terrain
|
|
104
105
|
terrainProvider?: any; // Cesium.TerrainProvider
|
|
105
106
|
mapType?: string;
|
|
@@ -150,7 +151,8 @@ export declare class CesiumMapToolbar {
|
|
|
150
151
|
},
|
|
151
152
|
initialCenter?: { longitude: number; latitude: number; height: number }
|
|
152
153
|
);
|
|
153
|
-
|
|
154
|
+
setMapTypes(mapTypes: MapType[]): void;
|
|
155
|
+
setTDToken(TD_Token: string): void;
|
|
154
156
|
setInitialCenter(center: { longitude: number; latitude: number; height: number }): void;
|
|
155
157
|
getInitialCenter(): { longitude: number; latitude: number; height: number } | undefined;
|
|
156
158
|
resetToInitialLocation(): void;
|