当前位置:网站首页>Cesium快速上手4-Polylines图元使用讲解
Cesium快速上手4-Polylines图元使用讲解
2022-08-10 14:59:00 【在人间负债^】
Cesium快速上手4-Polylines图元使用讲解
1. Polyline & Cesium.PolylineCollection
http://localhost:8080/Apps/Sandcastle/index.html?src=development%2FPolylines.html&label=Development
// A simple polyline with two points.
const polyline = polylines.add({
positions: Cesium.PolylinePipeline.generateCartesianArc({
positions: Cesium.Cartesian3.fromDegreesArray([
-120.0,
40.0,
-110.0,
30.0,
]),
}),
material: Cesium.Material.fromType("Color", {
color: new Cesium.Color(1.0, 1.0, 1.0, 1.0),
}),
});
2. PolylineGeometry
http://localhost:8080/Apps/Sandcastle/gallery/development%2FPolyline.html
3. SimplePolylineGeometry
http://localhost:8080/Apps/Sandcastle/index.html?src=development%2FSimple%20Polyline.html&label=Development
特点:SimplePolylineGeometry没有width属性
4. GroundPolylineGeometry
http://localhost:8080/Apps/Sandcastle/gallery/development%2FGround%20Polyline%20Material.html
http://localhost:8080/Apps/Sandcastle/gallery/development%2FPolylines%20On%20Terrain.html
注意:必须用GroundPolylinePrimitive来创建,而不能用GroundPrimitive创建
5. 综合比较
PolylineCollection可以同时渲染多条折线,性能较高;其他类型都是单独渲染某个折线的,会导致多了的话,渲染性能受影响。
边栏推荐
- “蔚来杯“2022牛客暑期多校训练营7
- Websocket realizes real-time change of chart content
- 12海里、24海里、200海里的意义及名称
- fastposter v2.9.1 程序员必备海报生成器
- 基于 Azuki 系列:NFT估值分析框架“DRIC”
- 王学岗—————————哔哩哔哩直播-手写哔哩哔哩硬编码录屏推流(硬编)(26节课)
- TestLink导出用例转换工具
- 数字藏品平台系统开发实战
- The a-modal in the antd component is set to a fixed height, and the content is scrolled and displayed
- MySQL命令行导出导入数据库
猜你喜欢
解题-->在线OJ(十九)
Community News——Congratulations to Dolphin Scheduling China User Group for 9 new "Community Administrators"
Azure IoT Partner Technology Empowerment Workshop: IoT Dev Hack
12海里、24海里、200海里的意义及名称
SWIG教程《二》
【MindSpore易点通机器人-02】设计与技术选型
MySQL 原理与优化:Update 优化
NFT digital collection development issue - digital collection platform
网络安全(加密技术、数字签名、证书)
2022年网络安全培训火了,缺口达95%,揭开网络安全岗位神秘面纱
随机推荐
storage of data in memory
领域驱动模型设计与微服务架构落地-从项目去剖析领域驱动
It is reported that the original Meitu executive joined Weilai mobile phone, the top product may exceed 7,000 yuan
Oracle数据库备份dmp文件太大,有什么办法可以在备份的时候拆分成多个dmp吗?
Epoll learn to think: a high performance server processing framework
Mysql语句分析、存储引擎、索引优化等详情
华为云DevCloud获信通院首批云原生技术架构成熟度评估的最高级认证
程序调试介绍及其使用
$‘\r‘: command not found
SWIG教程《一》
Redis -- Nosql
全部内置函数详细认识(中篇)
网络安全(加密技术、数字签名、证书)
Software Test Cases
推荐几款最好用的MySQL开源客户端,建议收藏!
学习MySQL 临时表
蓝帽杯半决赛火炬木wp
网络工程师的背包(EDC总结推荐)
const-modified pointer variable (detailed)
PAT甲级 1014 排队等候(队列大模拟+格式化时间)