| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-10-28 11:44:45 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-11-05 18:39:20 |
| | | * @FilePath: \bigScreen\src\views\layout\components\scomponents\baseMap.vue |
| | | * @LastEditTime: 2024-11-15 18:17:23 |
| | | * @FilePath: \bigScreen\src\pages\layout\components\scomponents\baseMap.vue |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2024 by shuishen, All Rights Reserved. |
| | |
| | | |
| | | const { appContext } = getCurrentInstance() |
| | | const global = appContext.config.globalProperties |
| | | |
| | | const Cesium = DC.getLib('Cesium') |
| | | const cesiumToken = |
| | | 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJkYTZlNGNlYS01NTU1LTQ1MGEtYmNlZS0yNTE2NDk5YWM2MjEiLCJpZCI6MTc5Njk2LCJpYXQiOjE3MDA1NDcwMjV9.qcl4AH2731cfFd0-I1ZLUINPXqvglLkDFD-UGR2zU5M' |
| | |
| | | const terrainChange = (e) => { |
| | | if (e) { |
| | | let terrain = DC.TerrainFactory.createTerrain(DC.TerrainType.XYZ, { |
| | | url: 'https://data.marsgis.cn/terrain' |
| | | url: 'https://data.mars3d.cn/terrain' |
| | | }) |
| | | window.$viewer.setTerrain(terrain) |
| | | } else { |