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.
- package/index.vue +5 -8
- 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
|
|
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
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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',
|