基础静态资源配置

This commit is contained in:
wzy-warehouse
2026-04-08 14:18:03 +08:00
parent 78a477be3c
commit 1b8348aecc
25 changed files with 6535 additions and 12 deletions
+6 -1
View File
@@ -107,7 +107,7 @@ export class CesiumUtils {
const finalOptions = { ...defaultOptions, ...options }
const container = document.getElementById(finalOptions.containerId)
if (!container) {
throw new Error(`Cesium 容器 #${finalOptions.containerId} 不存在`)
}
@@ -140,6 +140,11 @@ export class CesiumUtils {
viewer.scene.fog.enabled = false
viewer.scene.globe.enableLighting = false //全局光照
viewer.shadows = false
// 禁用天空盒和天空大气
viewer.scene.skyBox.show = false
viewer.scene.skyAtmosphere.show = false
// 禁用月球
viewer.scene.moon.show = false
const creditContainer = viewer.cesiumWidget.creditContainer as HTMLElement
creditContainer.style.display = 'none'