Members
staticreadonlyEarth.analyzation : Analyzation
分析类
staticreadonlyEarth.camera : Camera
相机管理器
staticreadonlyEarth.interaction : XbsjInteraction
交互类
staticreadonlyEarth.terrainEffect : TerrainEffect
地形特效
readonlycameraViewManager : CameraView.Manager
视角管理器
可以通过此对象调用Cesium相关接口,
Properties:
| Name | Type | Description |
|---|---|---|
viewer |
Cesium.Viewer | 返回Cesium的viewer对象 |
scene |
Cesium.Scene | 返回Cesium的scene对象 |
camera |
Cesium.Camera | 返回Cesium的camera对象 |
readonlysceneTree : SceneTree.Tree
场景树
Methods
截图
| Name | Type | Description |
|---|---|---|
width |
number | 图像宽度,单位像素 |
height |
number | 图像高度,单位像素 |
Returns:
返回图像的base64为字符串
获取某一类对象的集合
| Name | Type | Description |
|---|---|---|
filterType |
string | optional 对象类型名 |
根据guid获取某个对象
| Name | Type | Description |
|---|---|---|
id |
string | 对象的guid |
假定物体在屏幕上的大小来计算该物体实际尺寸,单位米
| Name | Type | Description |
|---|---|---|
position |
array | 位置,形式如[1.0, 0.5, 50.0],表示[经度, 纬度, 高度],经纬度以弧度为单位,高度以米为单位 |
screenSize |
number | 窗口上的实际像素大小,单位像素 |
Returns:
返回实际尺寸大小,单位米
位置拾取
| Name | Type | Description |
|---|---|---|
movePosition |
object | windows窗口坐标,形式如 {x: 10, y: 50 } |
result |
array | 返回值一个位置,形式如 [1.0, 0.5, 50.0],表示[经度, 纬度, 高度],经纬度以弧度为单位,高度以米为单位 |
注意:每次都会创建一个新对象!
Returns:
创建的JSON数据对象
通过JSON数据对象来设置属性
| Name | Type | Description |
|---|---|---|
jsonObject |
* |