1、搭建vue3项目
使用vite进行搭建。
npm init vite@latest
根据操作提示选择:vue 3 + Typescript
2、下载cesium库
终端输入:
npm install cesium
大约 2 分钟
使用vite进行搭建。
npm init vite@latest
根据操作提示选择:vue 3 + Typescript
终端输入:
npm install cesium
在Cesium中,清除实体Entity的方法主要是在Cesium.viewer.entities
实体集合中调用remove()
、removeById(id)
或removeAll()
1、用法
从集合中删除一个实体。
viewer.entities.remove(entity)