@xingm/vmap-cesium-toolbar 0.0.3 → 0.0.4-alpha.2

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.
Files changed (40) hide show
  1. package/README.md +7 -0
  2. package/dist/hooks/useDrawHelper.d.ts +1 -49
  3. package/dist/hooks/useHeatmapHelper.d.ts +1 -17
  4. package/dist/hooks/useOverlayHelper.d.ts +1 -221
  5. package/dist/hooks/usePointClusterHelper.d.ts +1 -11
  6. package/dist/i18n/en-US.d.ts +5 -0
  7. package/dist/i18n/zh-CN.d.ts +5 -0
  8. package/dist/index.es.js +2125 -1571
  9. package/dist/index.es.js.map +1 -1
  10. package/dist/index.umd.js +45 -14
  11. package/dist/index.umd.js.map +1 -1
  12. package/dist/libs/CesiumMapDraw.d.ts +20 -31
  13. package/dist/libs/CesiumMapLoader.d.ts +1 -0
  14. package/dist/libs/CesiumMapModel.d.ts +6 -0
  15. package/dist/libs/CesiumOverlayService.d.ts +16 -24
  16. package/dist/libs/CesiumPointClusterLayer.d.ts +21 -1
  17. package/dist/libs/PickGovernor.d.ts +23 -0
  18. package/dist/libs/drawHelper/DrawCircle.d.ts +1 -0
  19. package/dist/libs/drawHelper/DrawHint.d.ts +32 -0
  20. package/dist/libs/drawHelper/DrawLine.d.ts +1 -0
  21. package/dist/libs/drawHelper/index.d.ts +1 -0
  22. package/dist/libs/i18n/en-US.d.ts +3 -0
  23. package/dist/libs/i18n/zh-CN.d.ts +3 -0
  24. package/dist/libs/overlay/MapCircle.d.ts +2 -0
  25. package/dist/libs/overlay/MapPolygon.d.ts +2 -0
  26. package/dist/libs/overlay/MapPolyline.d.ts +4 -0
  27. package/dist/libs/overlay/MapRectangle.d.ts +2 -0
  28. package/dist/libs/overlay/MapRing.d.ts +3 -1
  29. package/dist/libs/overlay/OverlayEditController.d.ts +18 -20
  30. package/dist/libs/overlay/OverlayEditHandles.d.ts +63 -0
  31. package/dist/libs/overlay/OverlayHighlight.d.ts +40 -0
  32. package/dist/libs/overlay/primitives/CirclePrimitiveBatch.d.ts +1 -0
  33. package/dist/libs/overlay/primitives/PolygonPrimitiveBatch.d.ts +1 -0
  34. package/dist/libs/overlay/primitives/RectanglePrimitiveBatch.d.ts +1 -0
  35. package/dist/libs/overlay/types.d.ts +2 -0
  36. package/dist/libs/toolBar/MapLayersService.d.ts +18 -1
  37. package/dist/package.json +46 -0
  38. package/dist/style.css +162 -0
  39. package/dist/utils/selfIntersection.d.ts +2 -0
  40. package/package.json +1 -1
package/README.md CHANGED
@@ -104,6 +104,13 @@ import { initCesium } from '@xingm/vmap-cesium-toolbar';
104
104
  const { viewer } = await initCesium('cesiumContainer', {
105
105
  cesiumToken: 'your_cesium_ion_token',
106
106
  });
107
+
108
+ // 使用天地图时可指定底图类型(默认 imagery)
109
+ const { viewer: tdtViewer } = await initCesium('cesiumContainer', {
110
+ mapType: 'tiandi',
111
+ tdtMapTypeId: 'terrain',
112
+ token: 'your_tianditu_token',
113
+ });
107
114
  ```
108
115
 
109
116
  ## 配置选项
@@ -6,55 +6,7 @@ import * as Cesium from "cesium";
6
6
  * - 提供线、矩形、圆形、多边形的绘制示例方法
7
7
  */
8
8
  export declare function useDrawHelper(viewer: Ref<Cesium.Viewer | undefined>, message: Ref<string>): {
9
- drawHelper: Ref<{
10
- handleSceneModeChanged: () => void;
11
- startDrawingLine: (options?: import('../libs/drawHelper').DrawOptions) => void;
12
- startDrawingPolygon: (options?: import('../libs/drawHelper').DrawOptions) => void;
13
- startDrawingRectangle: (options?: import('../libs/drawHelper').DrawOptions) => void;
14
- startDrawingCircle: (options?: import('../libs/drawHelper').DrawOptions) => void;
15
- endDrawing: () => void;
16
- cancelDrawing: () => void;
17
- clearAll: () => void;
18
- clearAllEntities: () => void;
19
- clearAllPoints: () => void;
20
- removeEntity: (entity: Cesium.Entity) => void;
21
- getEntityLabelEntities: (entity: Cesium.Entity) => Cesium.Entity[];
22
- getFinishedEntities: () => Cesium.Entity[];
23
- onMeasureComplete: (callback: (result: {
24
- type: "line" | "polygon" | "rectangle" | "circle";
25
- positions: Cesium.Cartesian3[];
26
- distance?: number;
27
- areaKm2?: number;
28
- }) => void) => void;
29
- onDrawStart: (callback: () => void) => void;
30
- onDrawEnd: (callback: (entity: Cesium.Entity | null) => void) => void;
31
- onEntityRemoved: (callback: (entity: Cesium.Entity) => void) => void;
32
- destroy: () => void;
33
- } | null, DrawHelper | {
34
- handleSceneModeChanged: () => void;
35
- startDrawingLine: (options?: import('../libs/drawHelper').DrawOptions) => void;
36
- startDrawingPolygon: (options?: import('../libs/drawHelper').DrawOptions) => void;
37
- startDrawingRectangle: (options?: import('../libs/drawHelper').DrawOptions) => void;
38
- startDrawingCircle: (options?: import('../libs/drawHelper').DrawOptions) => void;
39
- endDrawing: () => void;
40
- cancelDrawing: () => void;
41
- clearAll: () => void;
42
- clearAllEntities: () => void;
43
- clearAllPoints: () => void;
44
- removeEntity: (entity: Cesium.Entity) => void;
45
- getEntityLabelEntities: (entity: Cesium.Entity) => Cesium.Entity[];
46
- getFinishedEntities: () => Cesium.Entity[];
47
- onMeasureComplete: (callback: (result: {
48
- type: "line" | "polygon" | "rectangle" | "circle";
49
- positions: Cesium.Cartesian3[];
50
- distance?: number;
51
- areaKm2?: number;
52
- }) => void) => void;
53
- onDrawStart: (callback: () => void) => void;
54
- onDrawEnd: (callback: (entity: Cesium.Entity | null) => void) => void;
55
- onEntityRemoved: (callback: (entity: Cesium.Entity) => void) => void;
56
- destroy: () => void;
57
- } | null>;
9
+ drawHelper: import('vue').ShallowRef<DrawHelper | null, DrawHelper | null>;
58
10
  isDrawing: Ref<boolean, boolean>;
59
11
  currentDrawMode: Ref<string | null, string | null>;
60
12
  initDrawHelper: () => void;
@@ -5,23 +5,7 @@ import * as Cesium from "cesium";
5
5
  * 热力图相关的辅助逻辑
6
6
  */
7
7
  export declare function useHeatmapHelper(viewer: Ref<Cesium.Viewer | undefined>): {
8
- heatmapLayer: Ref<{
9
- setData: (points: HeatPoint[]) => void;
10
- setGradient: (gradient: HeatmapGradient) => void;
11
- setOpacity: (opacity: number) => void;
12
- setVisible: (visible: boolean) => void;
13
- destroy: () => void;
14
- setAutoUpdate: (options?: HeatmapAutoUpdateOptions) => void;
15
- stopAutoUpdate: () => void;
16
- } | null, CesiumHeatmapLayer | {
17
- setData: (points: HeatPoint[]) => void;
18
- setGradient: (gradient: HeatmapGradient) => void;
19
- setOpacity: (opacity: number) => void;
20
- setVisible: (visible: boolean) => void;
21
- destroy: () => void;
22
- setAutoUpdate: (options?: HeatmapAutoUpdateOptions) => void;
23
- stopAutoUpdate: () => void;
24
- } | null>;
8
+ heatmapLayer: import('vue').ShallowRef<CesiumHeatmapLayer | null, CesiumHeatmapLayer | null>;
25
9
  visible: Ref<boolean, boolean>;
26
10
  initHeatmap: (options?: HeatmapOptions) => void;
27
11
  updateHeatmapData: (points: HeatPoint[]) => void;
@@ -17,227 +17,7 @@ type OverlayHelperOptions = {
17
17
  * - 管理点位模式的事件处理及清理
18
18
  */
19
19
  export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>, message: Ref<string>): {
20
- overlayService: Ref<{
21
- beginBulkUpdate: () => void;
22
- endBulkUpdate: () => void;
23
- bulkUpdate: <T>(fn: () => T) => T;
24
- readonly marker: {
25
- add: (options: import('../libs/overlay').MarkerOptions) => Entity;
26
- updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
27
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').MarkerOptions, "color" | "outlineColor" | "outlineWidth" | "pixelSize">>) => void;
28
- remove: (entityOrId: Entity | string) => boolean;
29
- };
30
- readonly label: {
31
- add: (options: import('../libs/overlay').LabelOptions) => Entity;
32
- updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
33
- updateText: (entity: Entity, text: string) => void;
34
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').LabelOptions, "fillColor" | "outlineColor" | "outlineWidth" | "font" | "scale">>) => void;
35
- remove: (entityOrId: Entity | string) => boolean;
36
- };
37
- readonly icon: {
38
- add: (options: import('../libs/overlay').IconOptions) => Entity;
39
- updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
40
- updateImage: (entity: Entity, image: string) => void;
41
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').IconOptions, "scale" | "rotation" | "color">>) => void;
42
- remove: (entityOrId: Entity | string) => boolean;
43
- };
44
- readonly svg: {
45
- add: (options: import('../libs/overlay').SvgOptions) => Entity;
46
- updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
47
- updateSvg: (entity: Entity, svg: string) => void;
48
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').SvgOptions, "scale" | "rotation" | "color">>) => void;
49
- remove: (entityOrId: Entity | string) => boolean;
50
- };
51
- readonly infoWindow: {
52
- setDefaultUpdateInterval: (ms: number) => void;
53
- forceUpdateAll: () => void;
54
- bringToFront: (entity: Entity) => void;
55
- add: (options: import('../libs/overlay').InfoWindowOptions) => Entity;
56
- updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
57
- updateContent: (entity: Entity, content: string | HTMLElement) => void;
58
- setVisible: (entity: Entity, visible: boolean) => void;
59
- show: (entity: Entity) => void;
60
- hide: (entity: Entity) => void;
61
- remove: (entity: Entity) => void;
62
- destroy: () => void;
63
- };
64
- readonly polyline: {
65
- add: (options: import('../libs/overlay').PolylineOptions) => Entity;
66
- updatePositions: (entity: Entity, positions: import('../libs/overlay').OverlayPosition[]) => void;
67
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').PolylineOptions, "width" | "material">>) => void;
68
- remove: (entityOrId: Entity | string) => boolean;
69
- };
70
- readonly polygon: {
71
- add: (options: import('../libs/overlay').PolygonOptions) => Entity;
72
- updatePositions: (entity: Entity, positions: import('../libs/overlay').OverlayPosition[]) => void;
73
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').PolygonOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
74
- remove: (entityOrId: Entity | string) => boolean;
75
- setPrimitiveVisible: (entity: Entity, visible: boolean) => void;
76
- applyPrimitiveHighlight: (entity: OverlayEntity, hlColor: Cesium.Color, fillAlpha: number) => void;
77
- restorePrimitiveHighlight: (entity: OverlayEntity) => void;
78
- };
79
- readonly rectangle: {
80
- add: (options: import('../libs/overlay').RectangleOptions) => Entity;
81
- updateCoordinates: (entity: Entity, coordinates: Cesium.Rectangle) => void;
82
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RectangleOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
83
- remove: (entityOrId: Entity | string) => boolean;
84
- setPrimitiveVisible: (entity: Entity, visible: boolean) => void;
85
- applyPrimitiveHighlight: (entity: OverlayEntity, hlColor: Cesium.Color, fillAlpha: number) => void;
86
- restorePrimitiveHighlight: (entity: OverlayEntity) => void;
87
- };
88
- readonly circle: {
89
- add: (options: import('../libs/overlay').CircleOptions) => Entity;
90
- updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
91
- updateRadius: (entity: Entity, radius: number) => void;
92
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').CircleOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
93
- remove: (entityOrId: Entity | string) => boolean;
94
- setPrimitiveVisible: (entity: Entity, visible: boolean) => void;
95
- applyPrimitiveHighlight: (entity: OverlayEntity, hlColor: Cesium.Color, fillAlpha: number) => void;
96
- restorePrimitiveHighlight: (entity: OverlayEntity) => void;
97
- };
98
- readonly ring: {
99
- add: (options: import('../libs/overlay').RingOptions) => Entity;
100
- updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
101
- updateRadius: (entity: Entity, radius: number) => void;
102
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RingOptions, "color" | "showInnerLine" | "lineColor" | "lineStyle" | "lineMaterialMode" | "stripeRepeat" | "dashLength" | "dashPattern" | "gapColor" | "width" | "glowWidth" | "lineWidth" | "glowPower" | "clampToGround" | "segments">>) => void;
103
- setVisible: (entity: Entity, visible: boolean) => void;
104
- remove: (entityOrId: Entity | string) => boolean;
105
- };
106
- setOverlayEditMode: (enabled: boolean) => void;
107
- getOverlayEditModeEnabled: () => boolean;
108
- stopOverlayEdit: () => void;
109
- startOverlayEdit: (entityOrId: (import('..').DrawEntity & OverlayEntity) | string) => boolean;
110
- toggleOverlayHighlight: (entity: OverlayEntity, reason?: "click" | "hover") => void;
111
- setOverlayHighlight: (entityOrId: OverlayEntity | string, enabled: boolean, reason?: "click" | "hover") => boolean;
112
- addMarker: (options: import('../libs/overlay').MarkerOptions) => Entity;
113
- addLabel: (options: import('../libs/overlay').LabelOptions) => Entity;
114
- addIcon: (options: import('../libs/overlay').IconOptions) => Entity;
115
- addSvg: (options: import('../libs/overlay').SvgOptions) => Entity;
116
- addInfoWindow: (options: import('../libs/overlay').InfoWindowOptions) => Entity;
117
- addPolyline: (options: import('../libs/overlay').PolylineOptions) => Entity;
118
- addPolygon: (options: import('../libs/overlay').PolygonOptions) => Entity;
119
- addRectangle: (options: import('../libs/overlay').RectangleOptions) => Entity;
120
- addCircle: (options: import('../libs/overlay').CircleOptions) => Entity;
121
- addRing: (options: import('../libs/overlay').RingOptions) => Entity;
122
- getOverlay: (id: string) => Entity | undefined;
123
- removeOverlay: (id: string) => boolean;
124
- removeAllOverlays: () => void;
125
- updateOverlayPosition: (id: string, position: import('../libs/overlay').OverlayPosition) => boolean;
126
- setOverlayVisible: (id: string, visible: boolean) => boolean;
127
- getAllOverlayIds: () => string[];
128
- getAllOverlays: () => Entity[];
129
- destroy: () => void;
130
- } | null, CesiumOverlayService | {
131
- beginBulkUpdate: () => void;
132
- endBulkUpdate: () => void;
133
- bulkUpdate: <T>(fn: () => T) => T;
134
- readonly marker: {
135
- add: (options: import('../libs/overlay').MarkerOptions) => Entity;
136
- updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
137
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').MarkerOptions, "color" | "outlineColor" | "outlineWidth" | "pixelSize">>) => void;
138
- remove: (entityOrId: Entity | string) => boolean;
139
- };
140
- readonly label: {
141
- add: (options: import('../libs/overlay').LabelOptions) => Entity;
142
- updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
143
- updateText: (entity: Entity, text: string) => void;
144
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').LabelOptions, "fillColor" | "outlineColor" | "outlineWidth" | "font" | "scale">>) => void;
145
- remove: (entityOrId: Entity | string) => boolean;
146
- };
147
- readonly icon: {
148
- add: (options: import('../libs/overlay').IconOptions) => Entity;
149
- updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
150
- updateImage: (entity: Entity, image: string) => void;
151
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').IconOptions, "scale" | "rotation" | "color">>) => void;
152
- remove: (entityOrId: Entity | string) => boolean;
153
- };
154
- readonly svg: {
155
- add: (options: import('../libs/overlay').SvgOptions) => Entity;
156
- updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
157
- updateSvg: (entity: Entity, svg: string) => void;
158
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').SvgOptions, "scale" | "rotation" | "color">>) => void;
159
- remove: (entityOrId: Entity | string) => boolean;
160
- };
161
- readonly infoWindow: {
162
- setDefaultUpdateInterval: (ms: number) => void;
163
- forceUpdateAll: () => void;
164
- bringToFront: (entity: Entity) => void;
165
- add: (options: import('../libs/overlay').InfoWindowOptions) => Entity;
166
- updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
167
- updateContent: (entity: Entity, content: string | HTMLElement) => void;
168
- setVisible: (entity: Entity, visible: boolean) => void;
169
- show: (entity: Entity) => void;
170
- hide: (entity: Entity) => void;
171
- remove: (entity: Entity) => void;
172
- destroy: () => void;
173
- };
174
- readonly polyline: {
175
- add: (options: import('../libs/overlay').PolylineOptions) => Entity;
176
- updatePositions: (entity: Entity, positions: import('../libs/overlay').OverlayPosition[]) => void;
177
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').PolylineOptions, "width" | "material">>) => void;
178
- remove: (entityOrId: Entity | string) => boolean;
179
- };
180
- readonly polygon: {
181
- add: (options: import('../libs/overlay').PolygonOptions) => Entity;
182
- updatePositions: (entity: Entity, positions: import('../libs/overlay').OverlayPosition[]) => void;
183
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').PolygonOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
184
- remove: (entityOrId: Entity | string) => boolean;
185
- setPrimitiveVisible: (entity: Entity, visible: boolean) => void;
186
- applyPrimitiveHighlight: (entity: OverlayEntity, hlColor: Cesium.Color, fillAlpha: number) => void;
187
- restorePrimitiveHighlight: (entity: OverlayEntity) => void;
188
- };
189
- readonly rectangle: {
190
- add: (options: import('../libs/overlay').RectangleOptions) => Entity;
191
- updateCoordinates: (entity: Entity, coordinates: Cesium.Rectangle) => void;
192
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RectangleOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
193
- remove: (entityOrId: Entity | string) => boolean;
194
- setPrimitiveVisible: (entity: Entity, visible: boolean) => void;
195
- applyPrimitiveHighlight: (entity: OverlayEntity, hlColor: Cesium.Color, fillAlpha: number) => void;
196
- restorePrimitiveHighlight: (entity: OverlayEntity) => void;
197
- };
198
- readonly circle: {
199
- add: (options: import('../libs/overlay').CircleOptions) => Entity;
200
- updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
201
- updateRadius: (entity: Entity, radius: number) => void;
202
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').CircleOptions, "material" | "outline" | "outlineColor" | "outlineWidth">>) => void;
203
- remove: (entityOrId: Entity | string) => boolean;
204
- setPrimitiveVisible: (entity: Entity, visible: boolean) => void;
205
- applyPrimitiveHighlight: (entity: OverlayEntity, hlColor: Cesium.Color, fillAlpha: number) => void;
206
- restorePrimitiveHighlight: (entity: OverlayEntity) => void;
207
- };
208
- readonly ring: {
209
- add: (options: import('../libs/overlay').RingOptions) => Entity;
210
- updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
211
- updateRadius: (entity: Entity, radius: number) => void;
212
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RingOptions, "color" | "showInnerLine" | "lineColor" | "lineStyle" | "lineMaterialMode" | "stripeRepeat" | "dashLength" | "dashPattern" | "gapColor" | "width" | "glowWidth" | "lineWidth" | "glowPower" | "clampToGround" | "segments">>) => void;
213
- setVisible: (entity: Entity, visible: boolean) => void;
214
- remove: (entityOrId: Entity | string) => boolean;
215
- };
216
- setOverlayEditMode: (enabled: boolean) => void;
217
- getOverlayEditModeEnabled: () => boolean;
218
- stopOverlayEdit: () => void;
219
- startOverlayEdit: (entityOrId: (import('..').DrawEntity & OverlayEntity) | string) => boolean;
220
- toggleOverlayHighlight: (entity: OverlayEntity, reason?: "click" | "hover") => void;
221
- setOverlayHighlight: (entityOrId: OverlayEntity | string, enabled: boolean, reason?: "click" | "hover") => boolean;
222
- addMarker: (options: import('../libs/overlay').MarkerOptions) => Entity;
223
- addLabel: (options: import('../libs/overlay').LabelOptions) => Entity;
224
- addIcon: (options: import('../libs/overlay').IconOptions) => Entity;
225
- addSvg: (options: import('../libs/overlay').SvgOptions) => Entity;
226
- addInfoWindow: (options: import('../libs/overlay').InfoWindowOptions) => Entity;
227
- addPolyline: (options: import('../libs/overlay').PolylineOptions) => Entity;
228
- addPolygon: (options: import('../libs/overlay').PolygonOptions) => Entity;
229
- addRectangle: (options: import('../libs/overlay').RectangleOptions) => Entity;
230
- addCircle: (options: import('../libs/overlay').CircleOptions) => Entity;
231
- addRing: (options: import('../libs/overlay').RingOptions) => Entity;
232
- getOverlay: (id: string) => Entity | undefined;
233
- removeOverlay: (id: string) => boolean;
234
- removeAllOverlays: () => void;
235
- updateOverlayPosition: (id: string, position: import('../libs/overlay').OverlayPosition) => boolean;
236
- setOverlayVisible: (id: string, visible: boolean) => boolean;
237
- getAllOverlayIds: () => string[];
238
- getAllOverlays: () => Entity[];
239
- destroy: () => void;
240
- } | null>;
20
+ overlayService: import('vue').ShallowRef<CesiumOverlayService | null, CesiumOverlayService | null>;
241
21
  initOverlayService: (options?: OverlayHelperOptions) => void;
242
22
  addMarker: () => void;
243
23
  addMarkerWithLabel: () => void;
@@ -5,17 +5,7 @@ import * as Cesium from 'cesium';
5
5
  * 点聚类图层相关的辅助逻辑(Vue3 composition API)
6
6
  */
7
7
  export declare function usePointClusterHelper(viewer: Ref<Cesium.Viewer | undefined>): {
8
- clusterLayer: Ref<{
9
- setData: (points: ClusterPoint[]) => void;
10
- setVisible: (visible: boolean) => void;
11
- setClusteringEnabled: (enabled: boolean) => void;
12
- destroy: () => void;
13
- } | null, CesiumPointClusterLayer | {
14
- setData: (points: ClusterPoint[]) => void;
15
- setVisible: (visible: boolean) => void;
16
- setClusteringEnabled: (enabled: boolean) => void;
17
- destroy: () => void;
18
- } | null>;
8
+ clusterLayer: import('vue').ShallowRef<CesiumPointClusterLayer | null, CesiumPointClusterLayer | null>;
19
9
  visible: Ref<boolean, boolean>;
20
10
  initCluster: (options?: PointClusterLayerOptions) => void;
21
11
  updateClusterData: (points: ClusterPoint[]) => void;
@@ -70,6 +70,11 @@ declare const enUS: {
70
70
  stop: string;
71
71
  };
72
72
  };
73
+ layers: {
74
+ map_type: {
75
+ place_name: string;
76
+ };
77
+ };
73
78
  draw: {
74
79
  start: {
75
80
  line: string;
@@ -70,6 +70,11 @@ declare const zhCN: {
70
70
  stop: string;
71
71
  };
72
72
  };
73
+ layers: {
74
+ map_type: {
75
+ place_name: string;
76
+ };
77
+ };
73
78
  draw: {
74
79
  start: {
75
80
  line: string;