You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import * as C from 'cesium'
|
|
|
|
|
|
|
|
// 扩展全局变量
|
|
|
|
declare global {
|
|
|
|
// 定义全局Cesium类型
|
|
|
|
const Cesium: typeof C
|
|
|
|
// 允许扩展 Window
|
|
|
|
interface Window {
|
|
|
|
Cesium: typeof C
|
|
|
|
CESIUM_BASE_URL: string
|
|
|
|
Viewer: C.Viewer
|
|
|
|
}
|
|
|
|
}
|