huweili-cesium 1.2.33 → 1.2.34

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 (2) hide show
  1. package/index.vue +5 -8
  2. package/package.json +1 -1
package/index.vue CHANGED
@@ -18,7 +18,7 @@ import { processMapConfigColors } from './js/tileProviders.js'
18
18
  import { applyImageryLayers, resolveOnlineBasemap } from './js/utils/mapImagery.js'
19
19
  import { createCustomToolbarButtons } from './js/customToolbarButtons.js'
20
20
  const { merge } = objectUtils()
21
- const { mouseController, setInitialCameraView, syncCameraInteractionMode, waitForMapReady } = basicConfig()
21
+ const { mouseController, setInitialCameraView, syncCameraInteractionMode } = basicConfig()
22
22
  const {
23
23
  addToolbarButton,
24
24
  addToolbarButtons,
@@ -239,13 +239,10 @@ const initCesium = async () => {
239
239
  })
240
240
  }
241
241
 
242
- const readyMap = await waitForMapReady(props.mapId)
243
- if (readyMap) {
244
- mouseController(readyMap, props.mapId, {
245
- onRightClick: (position) => emit('rightClick', position),
246
- onLeftClick: (event) => emit('leftClick', event),
247
- }) // 初始化鼠标控制器
248
- }
242
+ mouseController(map, props.mapId, {
243
+ onRightClick: (position) => emit('rightClick', position),
244
+ onLeftClick: (event) => emit('leftClick', event),
245
+ }) // 初始化鼠标控制器
249
246
 
250
247
  mapStore.setMapInfo(
251
248
  'center',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huweili-cesium",
3
- "version": "1.2.33",
3
+ "version": "1.2.34",
4
4
  "description": "基于 Cesium 的地图工具库(无人机态势、轨迹、围栏、工具栏等)",
5
5
  "type": "module",
6
6
  "main": "./index.js",