目录
第 1 章 三维 WebGIS 概述
1.1 Google Earth··································································································· 1
1.2 SkylineGlobe ······································································································ 2
1.3 LocaSpace Viewe································································································ 2
1.4 Cesium ············································································································· 3
1.5 Cesium API 概要 ································································································ 4
第 2 章 Cesium 快速入门
2.1 Cesium 环境搭建 ·························································································· 7
2.1.1 安装 Node.js 环境 ··························································································· 7
2.1.2 配置 Cesium 依赖 ··························································································· 8
2.2 搭建第一个 Cesium 程序 ················································································· 11
2.3 界面介绍 ······································································································ 15
2.4 默认控件介绍 ································································································ 16
2.4.1 Geocoder ···································································································· 16
2.4.2 HomeButton ································································································ 17
2.4.3 SceneModePicker ·························································································· 17
2.4.4 BaseLayerPicker ··························································································· 18
2.4.5 NavigationHelpButton ···················································································· 19
2.4.6 Animation ··································································································· 20
2.4.7 TimeLine ···································································································· 20
2.4.8 FullscreenButton ··························································································· 21
第 3 章 Cesium 数据加载
3.1 影像加载 ······································································································ 23
3.1.1 Bing 地图 ··································································································· 23
3.1.2 天地图 ······································································································· 25
3.1.3 ArcGIS 在线地图 ························································································· 27
3.1.4 高德地图 ···································································································· 27
3.1.5 OSM 影像 ·································································································· 28
3.1.6 MapBox 影像 ······························································································ 29
3.2 OGC 地图服务 ····························································································· 30
3.2.1 WMS ········································································································ 31
3.2.2 WMTS ······································································································· 35
3.2.3 TMS ········································································································· 38
3.3 GeoJSON 数据加载 ························································································· 40
3.4 KML 数据加载 ································································································ 40
3.5 TIFF 数据加载 ·································································································· 41
3.6 点云数据加载·································································································· 43
3.7 地形数据加载 ·································································································· 45
3.7.1 在线地形数据加载 ························································································ 45
3.7.2 本地地形数据加载 ························································································ 45
3.8 倾斜摄影模型数据加载 ····················································································· 49
3.9 glTF 数据加载 ··································································································· 52
3.10 CZML 数据加载 ······························································································ 53
3.11 单张图片底图加载······················································································· 55
第 4 章 Cesium 事件处理
4.1 鼠标事件 ········································································································ 57
4.1.1 鼠标左键事件 ······························································································ 58
4.1.2 鼠标右键事件 ······························································································ 60
4.1.3 鼠标移动事件 ······························································································ 62
4.1.4 鼠标滚轮事件 ······························································································ 62
4.2 键盘事件 ······································································································ 65
4.2.1 SHIFT ······································································································· 65
4.2.2 CTRL ········································································································ 66
4.2.3 ALT ·········································································································· 66
4.3 相机事件 ········································································································ 67
4.4 场景渲染事件 ·································································································· 68
4.4.1 preUpdate ··································································································· 69
4.4.2 postUpdate ·································································································· 69
4.4.3 preRender ··································································································· 69
4.4.4 postRender ·································································································· 70
第 5 章 Cesium 图形绘制
5.1 坐标系统 ········································································································71
5.1.1 WGS-84 坐标系 ··························································································· 71
5.1.2 世界坐标系 ································································································· 72
5.1.3 平面坐标系 ································································································· 72
5.1.4 坐标系统相互转换 ························································································ 73
5.2 几何图形绘制 ································································································· 77
5.2.1 Entity 绘制实体 ··························································································· 77
5.2.2 Entity 绘制贴地图形 ····················································································· 89
5.2.3 Entity 管理 ································································································· 96
5.2.4 Primitive 绘制图形 ······················································································· 104
5.2.5 GroundPrimitive 绘制贴地图形 ······································································· 118
5.2.6 Primitive 管理 ····························································································· 123
5.2.7 交互绘制 ··································································································· 127
第 6 章 Cesium 三维模型
6.1 3D Tiles 模型高度调整 ····················································································· 135
6.2 3D Tiles 模型旋转平移 ····················································································· 139
6.3 3D Tiles 模型缩放 ····························································································· 145
6.4 3D Tiles 模型单体化 ························································································· 149
6.4.1 矢量图层制作 ····························································································· 150
6.4.2 矢量数据切片 ····························································································· 153
6.4.3 单体化实现 ························································································ 155
6.5 3D Tiles 要素拾取 ·························································································· 158
6.6 3D Tiles 要素风格 ························································································· 161
6.7 3D 模型着色 ································································································· 168
6.8 贴合 3D 模型 ······························································································· 176
6.9 模拟小车移动 ································································································ 180
第 7 章 Cesium 材质特效
7.1 视频材质 ···································································································· 185
7.2 分辨率尺度 ··································································································· 189
7.3 云 ·············································································································· 192
7.4 雾 ·············································································································· 196
7.5 动态水面 ······································································································ 200
7.6 雷达扫描 ······································································································ 202
7.7 流动线 ········································································································· 206
7.8 电子围栏 ······································································································ 210
7.9 粒子烟花 ··································································································· 214
7.10 粒子火焰 ································································································ 219
7.11 粒子天气 ···································································································· 222
第 8 章 Cesium 工具应用
8.1 场景截图······································································································· 229
8.2 卷帘对比······································································································· 232
8.3 反选遮罩 ······································································································ 236
8.4 鹰眼视图 ····································································································· 238
8.5 指南针与比例尺······························································································· 242
8.6 坐标测量········································································································· 244
8.7 距离测量 ········································································································ 249
8.8 面积测量 ······································································································· 254
8.9 热力图 ·········································································································· 260
8.10 视频投影····································································································· 264
8.11 日照分析······································································································· 268
8.12 淹没分析 ······································································································· 271
8.13 通视分析 ······································································································ 275
8.14 可视域分析···································································································· 279
8.15 缓冲区分析 ··································································································· 282
8.16 地形开挖 ····································································································· 287
8.17 要素聚合 ···································································································· 292
8.18 开启地下模式 ······························································································· 296
8.19 开启等高线 ································································································ 298
8.20 坡度坡向 ·································································································· 301
8.21 填挖方量计算 ······························································································· 305
获取PFD文件
回复 cesium开发 获取下载链接