husq
2023-09-13 8dacad04d05230e64ddfbf2c9757eecca7c61589
Merge branch 'develop' of http://s16s652780.51mypc.cn:49896/r/yskj/iot_drone_web into develop
1 files modified
22 ■■■■■ changed files
src/pages/page-web/projects/wayline.vue 22 ●●●●● patch | view | raw | blame | history
src/pages/page-web/projects/wayline.vue
@@ -96,6 +96,11 @@
import { load } from '@amap/amap-jsapi-loader'
import { getRoot } from '/@/root'
import * as Cesium from 'cesium'
const { appContext } = getCurrentInstance()
const global = appContext.config.globalProperties
const loading = ref(false)
const store = useMyStore()
const projectId = store.state.common.projectId
@@ -188,7 +193,22 @@
}
function selectRoute (wayline: WaylineFile) {
  store.commit('SET_SELECT_WAYLINE_INFO', wayline)
  console.log(global, '+++++++++++')
  const options = {
    camera: global.$viewer.scene.camera,
    canvas: global.$viewer.scene.canvas,
    screenOverlayContainer: global.$viewer.container,
  }
  global.$viewer.dataSources.add(
    Cesium.KmlDataSource.load(
      '/src/assets/kmz/test.kmz',
      options
    )).then(res => {
    console.log(res, '+++++++++++++++++++')
  })
  // store.commit('SET_SELECT_WAYLINE_INFO', wayline)
}
function onScroll (e: any) {