当前位置:网站首页>Cesium geojson数据的添加与移除
Cesium geojson数据的添加与移除
2022-07-17 05:06:00 【Wxy4Z1zzz】
1、定义GeoJson:首先定义GeoJsonDataSource,加载GeoJson。

2、添加GeoJson:将定义好的GeoJson添加到viewer的dataSources中。

这里要注意:
(1)给定义好的GeoJson赋一个name,默认name为undefined。name可以是英文也可以是中文,但一定要保证唯一性。
(2)使用 then 方法,直接给GeoJson定义name会导致与GeoJson自带的name对应不上。
3、移除GeoJson:根据GeoJson的name字段,来判断移除地图场景上的哪一个GeoJson数据。

4、如果要全部移除,直接使用 removeAll。

边栏推荐
- 学习C语言的第四天
- 学习C语言第8天
- Teddy Cup title a full version optimization update (4/23)
- Submit the uniapp form (input, radio, picker) to get the parameter value
- 微信小程序wx.setClipboardData复制文本
- 小程序云开发 上传图片到云存储
- Applet cloud development upload pictures to cloud storage
- ES6 latest commonly used knowledge dictionary (which can help you solve interview questions, problems in programming, etc.)
- 热更新及其原理
- 遍历的方法总结
猜你喜欢

Email (including attachments, Netease, QQ)

The code of yolov5 model for pest identification in Title A of the 10th Teddy cup data mining challenge (has been run through, original works, continuously updated)

Internship project 2 - Homepage configuration - my data module

NVIDIA GeForce Experience登录报错:验证程序加载失败,请检查您的浏览器设置,例如广告拦截程序(解决办法)

基于RTX30显卡的ArcGIS Pro2.8深度学习环境配置

Applet cloud development upload pictures to cloud storage

mysql数据库实验实训5,数据查询yggl数据库查询(详细)

Pygame:外星人入侵

645. 错误的集合

无重复字符的最长字串
随机推荐
轮播图移动速度(匀速,缓动)案例归总
Cesium 绑定鼠标事件和移除鼠标事件
微信小程序状态栏
Word2Vec原理及应用与文章相似度(推荐系统方法)
IDL MODIS 生成查找表
数据可视化
【LeetCode——编程能力入门第一天】基本数据类型[在区间范围内统计奇数数目/去掉最低工资和最高工资后的工资平均值)
Feature extraction of machine learning (digitization and discretization of category features and digitization of text features)
读论文《Learning to Measure Changes: Fully Convolutional Siamese Metric Networks for Scene Change Detec》
Travel data acquisition, data analysis and data mining [2022.5.30]
关于New_Online_Judge_1081_哥德巴赫猜想的思考
【LeetCode——编程能力入门第二天】运算符(位1的个数/整数的各位积和之差)
【C语言—零基础第十课】数组王国奇遇记
How to upload qiniu cloud
The principle and local storage of the throttle valve of the rotation chart are summarized
获取URL参数的两种方法及location对象的各项获取方式
Case summary of rotation chart moving speed (constant speed, slow motion)
Two methods of rotation chart and automatic rotation
Uni app conditional compilation ifdef ENDIF compatible with multiple terminals
User management - restrictions