跳至主要內容
01、cesium加载地球与环境搭建

1、搭建vue3项目

使用vite进行搭建。

npm init vite@latest

根据操作提示选择:vue 3 + Typescript

2、下载cesium库

终端输入:

npm install cesium

祭司唐大约 2 分钟Cesium
Cesium中的removeAll

在Cesium中,清除实体Entity的方法主要是在Cesium.viewer.entities实体集合中调用remove()removeById(id)removeAll()

一、remove()方法

1、用法

从集合中删除一个实体。

viewer.entities.remove(entity)

祭司唐大约 3 分钟杂谈Cesium