| | |
| | | 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 |
| | |
| | | } |
| | | |
| | | 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) { |