@xingm/vmap-cesium-toolbar 0.0.2-alpha.16 → 0.0.2-alpha.18
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 -0
- package/dist/hooks/useMapInit.d.ts +14 -0
- package/dist/hooks/useOverlayHelper.d.ts +7 -0
- package/dist/i18n/en-US.d.ts +135 -0
- package/dist/i18n/index.d.ts +3 -0
- package/dist/i18n/zh-CN.d.ts +135 -0
- package/dist/index.d.ts +37 -971
- package/dist/{index.js → index.es.js} +1529 -865
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +18 -18
- package/dist/index.umd.js.map +1 -1
- package/dist/libs/CesiumAutoRecover.d.ts +48 -0
- package/dist/libs/CesiumHeatmapLayer.d.ts +20 -0
- package/dist/libs/CesiumMapLoader.d.ts +4 -0
- package/dist/libs/CesiumMapModel.d.ts +6 -0
- package/dist/libs/CesiumMapToolbar.d.ts +3 -0
- package/dist/libs/CesiumOverlayService.d.ts +29 -0
- package/dist/libs/drawHelper/DrawPolgon.d.ts +5 -0
- package/dist/libs/i18n/en-US.d.ts +66 -0
- package/dist/libs/i18n/index.d.ts +25 -0
- package/dist/libs/i18n/zh-CN.d.ts +66 -0
- package/dist/libs/overlay/primitives/CirclePrimitiveLayerStack.d.ts +5 -5
- package/dist/libs/overlay/primitives/PolygonPrimitiveLayerStack.d.ts +5 -5
- package/dist/libs/toolBar/MapLayersService.d.ts +5 -0
- package/dist/libs/toolBar/MapSearchService.d.ts +7 -1
- package/dist/libs/toolBar/MapToolBarConfig.d.ts +8 -1
- package/dist/libs/toolBar/NotFlyZonesService.d.ts +5 -0
- package/dist/package.json +7 -6
- package/package.json +6 -5
- package/dist/index.js.map +0 -1
|
@@ -15,6 +15,7 @@ export declare const useToolBarConfig: (viewer: Viewer | undefined, message: Ref
|
|
|
15
15
|
id: string;
|
|
16
16
|
icon: string;
|
|
17
17
|
title: string;
|
|
18
|
+
titleKey: string;
|
|
18
19
|
color: string;
|
|
19
20
|
borderColor: string;
|
|
20
21
|
backgroundColor: string;
|
|
@@ -25,6 +26,7 @@ export declare const useToolBarConfig: (viewer: Viewer | undefined, message: Ref
|
|
|
25
26
|
id: string;
|
|
26
27
|
icon: string;
|
|
27
28
|
title: string;
|
|
29
|
+
titleKey: string;
|
|
28
30
|
color: string;
|
|
29
31
|
backgroundColor: string;
|
|
30
32
|
borderColor?: undefined;
|
|
@@ -36,6 +38,7 @@ export declare const useToolBarConfig: (viewer: Viewer | undefined, message: Ref
|
|
|
36
38
|
icon: boolean;
|
|
37
39
|
activeIcon: boolean;
|
|
38
40
|
title: string;
|
|
41
|
+
titleKey: string;
|
|
39
42
|
color: string;
|
|
40
43
|
backgroundColor: string;
|
|
41
44
|
borderColor?: undefined;
|
|
@@ -45,6 +48,7 @@ export declare const useToolBarConfig: (viewer: Viewer | undefined, message: Ref
|
|
|
45
48
|
id: string;
|
|
46
49
|
icon: string;
|
|
47
50
|
title: string;
|
|
51
|
+
titleKey: string;
|
|
48
52
|
color: string;
|
|
49
53
|
borderColor: string;
|
|
50
54
|
backgroundColor: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const TD_Map_TOKEN: any;
|
|
2
|
+
export declare const China_Map_Bound = "73.5577,18.1597,135.0882,53.5609";
|
|
3
|
+
export declare const China_Map_Center: {
|
|
4
|
+
longitude: number;
|
|
5
|
+
latitude: number;
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const China_Map_Extent: {
|
|
9
|
+
west: number;
|
|
10
|
+
south: number;
|
|
11
|
+
east: number;
|
|
12
|
+
north: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const TD_Map_Search_URL: (keywords: string, mapConfig: any, token?: any) => string;
|
|
@@ -10,6 +10,9 @@ import * as Cesium from "cesium";
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>, message: Ref<string>): {
|
|
12
12
|
overlayService: Ref<{
|
|
13
|
+
beginBulkUpdate: () => void;
|
|
14
|
+
endBulkUpdate: () => void;
|
|
15
|
+
bulkUpdate: <T>(fn: () => T) => T;
|
|
13
16
|
readonly marker: {
|
|
14
17
|
add: (options: import('../libs/overlay').MarkerOptions) => Entity;
|
|
15
18
|
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
@@ -113,6 +116,9 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
|
|
|
113
116
|
getAllOverlays: () => Entity[];
|
|
114
117
|
destroy: () => void;
|
|
115
118
|
} | null, CesiumOverlayService | {
|
|
119
|
+
beginBulkUpdate: () => void;
|
|
120
|
+
endBulkUpdate: () => void;
|
|
121
|
+
bulkUpdate: <T>(fn: () => T) => T;
|
|
116
122
|
readonly marker: {
|
|
117
123
|
add: (options: import('../libs/overlay').MarkerOptions) => Entity;
|
|
118
124
|
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
@@ -232,6 +238,7 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
|
|
|
232
238
|
addLine: () => void;
|
|
233
239
|
addArea: () => void;
|
|
234
240
|
addCircle: () => void;
|
|
241
|
+
addCircle123: () => void;
|
|
235
242
|
addRing: (i?: number) => Cesium.Entity | undefined;
|
|
236
243
|
addPolygon: () => void;
|
|
237
244
|
addRectangle: () => void;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
declare const enUS: {
|
|
2
|
+
locale: string;
|
|
3
|
+
app: {
|
|
4
|
+
lang: {
|
|
5
|
+
zh: string;
|
|
6
|
+
en: string;
|
|
7
|
+
};
|
|
8
|
+
located: string;
|
|
9
|
+
init_success: string;
|
|
10
|
+
heatmap_empty: string;
|
|
11
|
+
heatmap_need_add: string;
|
|
12
|
+
heatmap_added: string;
|
|
13
|
+
heatmap_auto_on: string;
|
|
14
|
+
heatmap_auto_off: string;
|
|
15
|
+
heatmap_lod_coarse: string;
|
|
16
|
+
heatmap_lod_medium: string;
|
|
17
|
+
heatmap_lod_fine: string;
|
|
18
|
+
ring_test_added: string;
|
|
19
|
+
custom_alert: string;
|
|
20
|
+
custom_stats: string;
|
|
21
|
+
custom_visibility: string;
|
|
22
|
+
custom_alert_title: string;
|
|
23
|
+
custom_stats_title: string;
|
|
24
|
+
custom_visibility_title: string;
|
|
25
|
+
};
|
|
26
|
+
ui: {
|
|
27
|
+
draw: {
|
|
28
|
+
line: string;
|
|
29
|
+
area: string;
|
|
30
|
+
area_no_label: string;
|
|
31
|
+
circle: string;
|
|
32
|
+
circle_no_label: string;
|
|
33
|
+
polygon: string;
|
|
34
|
+
polygon_point_intercept: string;
|
|
35
|
+
polygon_finish_fallback: string;
|
|
36
|
+
polygon_no_label: string;
|
|
37
|
+
};
|
|
38
|
+
add: {
|
|
39
|
+
marker: string;
|
|
40
|
+
line: string;
|
|
41
|
+
area: string;
|
|
42
|
+
circle: string;
|
|
43
|
+
circle123: string;
|
|
44
|
+
polygon: string;
|
|
45
|
+
polyline: string;
|
|
46
|
+
icon: string;
|
|
47
|
+
svg: string;
|
|
48
|
+
marker_with_label: string;
|
|
49
|
+
label: string;
|
|
50
|
+
rectangle: string;
|
|
51
|
+
info_window: string;
|
|
52
|
+
ring: string;
|
|
53
|
+
ring_test: string;
|
|
54
|
+
heatmap: string;
|
|
55
|
+
};
|
|
56
|
+
test: {
|
|
57
|
+
set_highlight: string;
|
|
58
|
+
toggle_highlight: string;
|
|
59
|
+
};
|
|
60
|
+
heatmap: {
|
|
61
|
+
auto_on: string;
|
|
62
|
+
auto_off: string;
|
|
63
|
+
lod_coarse: string;
|
|
64
|
+
lod_medium: string;
|
|
65
|
+
lod_fine: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
draw: {
|
|
69
|
+
start: {
|
|
70
|
+
line: string;
|
|
71
|
+
rectangle: string;
|
|
72
|
+
rectangle_no_label: string;
|
|
73
|
+
circle: string;
|
|
74
|
+
circle_no_label: string;
|
|
75
|
+
polygon: string;
|
|
76
|
+
polygon_no_label: string;
|
|
77
|
+
polygon_point_intercept: string;
|
|
78
|
+
polygon_finish_fallback: string;
|
|
79
|
+
};
|
|
80
|
+
done: {
|
|
81
|
+
line: string;
|
|
82
|
+
rectangle: string;
|
|
83
|
+
rectangle_no_label: string;
|
|
84
|
+
circle: string;
|
|
85
|
+
circle_no_label: string;
|
|
86
|
+
polygon: string;
|
|
87
|
+
polygon_no_label: string;
|
|
88
|
+
polygon_point_intercept_ok: string;
|
|
89
|
+
polygon_point_intercept_end: string;
|
|
90
|
+
polygon_finish_fallback_ok: string;
|
|
91
|
+
polygon_finish_fallback_blocked: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
overlay: {
|
|
95
|
+
marker_mode: string;
|
|
96
|
+
marker_added: string;
|
|
97
|
+
marker_position: string;
|
|
98
|
+
sample_marker_label: string;
|
|
99
|
+
sample_marker_added: string;
|
|
100
|
+
icon_added: string;
|
|
101
|
+
icon_clicked: string;
|
|
102
|
+
svg_added: string;
|
|
103
|
+
svg_clicked: string;
|
|
104
|
+
polyline_added: string;
|
|
105
|
+
polyline_clicked: string;
|
|
106
|
+
line_added: string;
|
|
107
|
+
line_clicked: string;
|
|
108
|
+
area_added: string;
|
|
109
|
+
area_a_clicked: string;
|
|
110
|
+
area_b_clicked: string;
|
|
111
|
+
circle_added: string;
|
|
112
|
+
circle_a_clicked: string;
|
|
113
|
+
circle_b_clicked: string;
|
|
114
|
+
circle_c_clicked: string;
|
|
115
|
+
circle_d_clicked: string;
|
|
116
|
+
circle_e_clicked: string;
|
|
117
|
+
circle_alarm_clicked: string;
|
|
118
|
+
circle_detect_clicked: string;
|
|
119
|
+
rectangle_added: string;
|
|
120
|
+
rectangle_a_clicked: string;
|
|
121
|
+
rectangle_b_clicked: string;
|
|
122
|
+
rectangle_c_clicked: string;
|
|
123
|
+
rectangle_d_clicked: string;
|
|
124
|
+
rectangle_e_clicked: string;
|
|
125
|
+
highlight_need_rect_b: string;
|
|
126
|
+
highlight_need_rect_e: string;
|
|
127
|
+
info_window_added: string;
|
|
128
|
+
info_clicked: string;
|
|
129
|
+
info_window_title: string;
|
|
130
|
+
info_window_desc: string;
|
|
131
|
+
ring_added: string;
|
|
132
|
+
ring_clicked: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
export default enUS;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
declare const zhCN: {
|
|
2
|
+
locale: string;
|
|
3
|
+
app: {
|
|
4
|
+
lang: {
|
|
5
|
+
zh: string;
|
|
6
|
+
en: string;
|
|
7
|
+
};
|
|
8
|
+
located: string;
|
|
9
|
+
init_success: string;
|
|
10
|
+
heatmap_empty: string;
|
|
11
|
+
heatmap_need_add: string;
|
|
12
|
+
heatmap_added: string;
|
|
13
|
+
heatmap_auto_on: string;
|
|
14
|
+
heatmap_auto_off: string;
|
|
15
|
+
heatmap_lod_coarse: string;
|
|
16
|
+
heatmap_lod_medium: string;
|
|
17
|
+
heatmap_lod_fine: string;
|
|
18
|
+
ring_test_added: string;
|
|
19
|
+
custom_alert: string;
|
|
20
|
+
custom_stats: string;
|
|
21
|
+
custom_visibility: string;
|
|
22
|
+
custom_alert_title: string;
|
|
23
|
+
custom_stats_title: string;
|
|
24
|
+
custom_visibility_title: string;
|
|
25
|
+
};
|
|
26
|
+
ui: {
|
|
27
|
+
draw: {
|
|
28
|
+
line: string;
|
|
29
|
+
area: string;
|
|
30
|
+
area_no_label: string;
|
|
31
|
+
circle: string;
|
|
32
|
+
circle_no_label: string;
|
|
33
|
+
polygon: string;
|
|
34
|
+
polygon_point_intercept: string;
|
|
35
|
+
polygon_finish_fallback: string;
|
|
36
|
+
polygon_no_label: string;
|
|
37
|
+
};
|
|
38
|
+
add: {
|
|
39
|
+
marker: string;
|
|
40
|
+
line: string;
|
|
41
|
+
area: string;
|
|
42
|
+
circle: string;
|
|
43
|
+
circle123: string;
|
|
44
|
+
polygon: string;
|
|
45
|
+
polyline: string;
|
|
46
|
+
icon: string;
|
|
47
|
+
svg: string;
|
|
48
|
+
marker_with_label: string;
|
|
49
|
+
label: string;
|
|
50
|
+
rectangle: string;
|
|
51
|
+
info_window: string;
|
|
52
|
+
ring: string;
|
|
53
|
+
ring_test: string;
|
|
54
|
+
heatmap: string;
|
|
55
|
+
};
|
|
56
|
+
test: {
|
|
57
|
+
set_highlight: string;
|
|
58
|
+
toggle_highlight: string;
|
|
59
|
+
};
|
|
60
|
+
heatmap: {
|
|
61
|
+
auto_on: string;
|
|
62
|
+
auto_off: string;
|
|
63
|
+
lod_coarse: string;
|
|
64
|
+
lod_medium: string;
|
|
65
|
+
lod_fine: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
draw: {
|
|
69
|
+
start: {
|
|
70
|
+
line: string;
|
|
71
|
+
rectangle: string;
|
|
72
|
+
rectangle_no_label: string;
|
|
73
|
+
circle: string;
|
|
74
|
+
circle_no_label: string;
|
|
75
|
+
polygon: string;
|
|
76
|
+
polygon_no_label: string;
|
|
77
|
+
polygon_point_intercept: string;
|
|
78
|
+
polygon_finish_fallback: string;
|
|
79
|
+
};
|
|
80
|
+
done: {
|
|
81
|
+
line: string;
|
|
82
|
+
rectangle: string;
|
|
83
|
+
rectangle_no_label: string;
|
|
84
|
+
circle: string;
|
|
85
|
+
circle_no_label: string;
|
|
86
|
+
polygon: string;
|
|
87
|
+
polygon_no_label: string;
|
|
88
|
+
polygon_point_intercept_ok: string;
|
|
89
|
+
polygon_point_intercept_end: string;
|
|
90
|
+
polygon_finish_fallback_ok: string;
|
|
91
|
+
polygon_finish_fallback_blocked: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
overlay: {
|
|
95
|
+
marker_mode: string;
|
|
96
|
+
marker_added: string;
|
|
97
|
+
marker_position: string;
|
|
98
|
+
sample_marker_label: string;
|
|
99
|
+
sample_marker_added: string;
|
|
100
|
+
icon_added: string;
|
|
101
|
+
icon_clicked: string;
|
|
102
|
+
svg_added: string;
|
|
103
|
+
svg_clicked: string;
|
|
104
|
+
polyline_added: string;
|
|
105
|
+
polyline_clicked: string;
|
|
106
|
+
line_added: string;
|
|
107
|
+
line_clicked: string;
|
|
108
|
+
area_added: string;
|
|
109
|
+
area_a_clicked: string;
|
|
110
|
+
area_b_clicked: string;
|
|
111
|
+
circle_added: string;
|
|
112
|
+
circle_a_clicked: string;
|
|
113
|
+
circle_b_clicked: string;
|
|
114
|
+
circle_c_clicked: string;
|
|
115
|
+
circle_d_clicked: string;
|
|
116
|
+
circle_e_clicked: string;
|
|
117
|
+
circle_alarm_clicked: string;
|
|
118
|
+
circle_detect_clicked: string;
|
|
119
|
+
rectangle_added: string;
|
|
120
|
+
rectangle_a_clicked: string;
|
|
121
|
+
rectangle_b_clicked: string;
|
|
122
|
+
rectangle_c_clicked: string;
|
|
123
|
+
rectangle_d_clicked: string;
|
|
124
|
+
rectangle_e_clicked: string;
|
|
125
|
+
highlight_need_rect_b: string;
|
|
126
|
+
highlight_need_rect_e: string;
|
|
127
|
+
info_window_added: string;
|
|
128
|
+
info_clicked: string;
|
|
129
|
+
info_window_title: string;
|
|
130
|
+
info_window_desc: string;
|
|
131
|
+
ring_added: string;
|
|
132
|
+
ring_clicked: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
export default zhCN;
|