@xingm/vmap-cesium-toolbar 0.0.1-alpha.1 → 0.0.1-alpha.10
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 +4 -3
- package/dist/index.d.ts +6 -1
- package/dist/index.js +1083 -836
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +37 -37
- package/dist/index.umd.js.map +1 -1
- package/dist/libs/CesiumMapHelper.d.ts +31 -27
- package/dist/libs/CesiumMapLoader.d.ts +6 -1
- package/dist/libs/CesiumMapModel.d.ts +3 -2
- package/dist/libs/CesiumMapToolbar.d.ts +20 -0
- package/dist/package.json +5 -5
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchResult } from '../libs/CesiumMapModel';
|
|
2
|
-
export declare const useToolBarConfig: (message: any) => {
|
|
2
|
+
export declare const useToolBarConfig: (viewer: any, message: any) => {
|
|
3
3
|
toolbarConfig: {
|
|
4
4
|
position: string;
|
|
5
5
|
buttonSize: number;
|
|
@@ -56,13 +56,14 @@ export declare const useToolBarConfig: (message: any) => {
|
|
|
56
56
|
onSelect: (result: SearchResult) => void;
|
|
57
57
|
};
|
|
58
58
|
measurement: {
|
|
59
|
+
onMeasurementStart: (positions?: any) => void;
|
|
59
60
|
onDistanceComplete: (positions: any, distance: any) => void;
|
|
60
61
|
onAreaComplete: (positions: any, area: any) => void;
|
|
61
62
|
onClear: () => void;
|
|
62
63
|
};
|
|
63
64
|
zoom: {
|
|
64
|
-
onZoomIn: (beforeLevel: any, afterLevel: any) => void;
|
|
65
|
-
onZoomOut: (beforeLevel: any, afterLevel: any) => void;
|
|
65
|
+
onZoomIn: (beforeLevel: any, afterLevel: any, currentLevel: any) => void;
|
|
66
|
+
onZoomOut: (beforeLevel: any, afterLevel: any, currentLevel: any) => void;
|
|
66
67
|
};
|
|
67
68
|
};
|
|
68
69
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export interface SearchResult {
|
|
|
43
43
|
|
|
44
44
|
// 测量回调接口
|
|
45
45
|
export interface MeasurementCallback {
|
|
46
|
+
onMeasurementStart?: (positions?: Cartesian3[]) => void;
|
|
46
47
|
onDistanceComplete?: (positions: Cartesian3[], distance: number) => void;
|
|
47
48
|
onAreaComplete?: (positions: Cartesian3[], area: number) => void;
|
|
48
49
|
onClear?: () => void;
|
|
@@ -101,6 +102,7 @@ export interface MapCenter {
|
|
|
101
102
|
// 初始化选项接口
|
|
102
103
|
export interface InitOptions {
|
|
103
104
|
token?: string;
|
|
105
|
+
cesiumToken?: string;
|
|
104
106
|
terrain?: any; // Cesium.Terrain
|
|
105
107
|
terrainProvider?: any; // Cesium.TerrainProvider
|
|
106
108
|
mapType?: string;
|
|
@@ -109,6 +111,8 @@ export interface InitOptions {
|
|
|
109
111
|
terrainShadows?: any; // Cesium.ShadowMode
|
|
110
112
|
contextOptions?: any; // Cesium.ContextOptions
|
|
111
113
|
scene3DOnly?: boolean;
|
|
114
|
+
isFlyTo?: boolean;
|
|
115
|
+
isFly?: boolean;
|
|
112
116
|
selectionIndicator?: boolean;
|
|
113
117
|
navigationHelpButton?: boolean;
|
|
114
118
|
fullscreenButton?: boolean;
|
|
@@ -203,7 +207,8 @@ export declare class DrawHelper {
|
|
|
203
207
|
export declare function initCesium(
|
|
204
208
|
containerId: string,
|
|
205
209
|
options: InitOptions,
|
|
206
|
-
mapCenter?: MapCenter
|
|
210
|
+
mapCenter?: MapCenter,
|
|
211
|
+
cesiumToken?: String
|
|
207
212
|
): Promise<{ viewer: Viewer; initialCenter: MapCenter }>;
|
|
208
213
|
|
|
209
214
|
// 默认导出
|