| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-10-25 15:09:55 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-11-07 19:24:27 |
| | | * @LastEditTime: 2024-11-09 19:55:21 |
| | | * @FilePath: \bigScreen\src\hooks\initMap.js |
| | | * @Description: |
| | | * |
| | |
| | | import { useMap } from 'store/map' |
| | | import { nextTick, onMounted, onUnmounted } from 'vue' |
| | | import * as turf from '@turf/turf' |
| | | import * as Cesium from 'cesium' |
| | | import 'cesium/Build/Cesium/Widgets/widgets.css' |
| | | |
| | | export function readyViewer () { |
| | | const Cesium = DC.getLib('Cesium') |
| | | const store = useMap() |
| | | |
| | | function initMap () { |
| | |
| | | |
| | | nextTick(() => { |
| | | DC.ready({ |
| | | // Cesium: Cesium, |
| | | baseUrl: `${VITE_APP_BASE}libs/dc-sdk/resources/`, |
| | | turf, |
| | | }).then(() => { |