Members
绘制模式
viewer3D : Viewer3D
Methods
创建 label
Name | Type | Description |
---|---|---|
options.text |
label内容 | |
options.position |
Cartesian3 | label 坐标点 |
options.fontStyle |
String | optional default:'24px Helvetica' 字体大小及样式 |
options.fillColor |
Color | optional default:Color.SKYBLUE 字体填充色 |
options.outlineColor |
Color | optional default:Color.BLACK 字体外边框色 |
options.outlineWidth |
Number | optional default:2 字体外边框宽度 |
options.labelStyle |
Number | optional default:LabelStyle.FILL_AND_OUTLINE Cesium.LabelStyle |
options.labelStyle |
Number | optional default:LabelStyle.FILL_AND_OUTLINE Cesium.LabelStyle |
清理退出函数
清理绘制痕迹
清除所有label
Name | Type | Description |
---|---|---|
position |
Cartesian3 | optional 点的位置 |
entity |
Entity | optional 点的父类 即这个点归属于哪一个entity |
options |
Object | optional options.image {String} 图片路径 options.show {Boolen} default:true options.scale {Number} default:2 缩放 |
Returns:
Name | Type | Description |
---|---|---|
position |
Cartesian3 | optional 点的位置 |
entity |
Entity | optional 点的父类 即这个点归属于哪一个entity |
options |
Object | optional options.pointSize {Number} default:10 点的大小 options.pointColor {String} default:'rgba(255,255,0,0.8)'点的颜色 options.pointOutlineColor {String} default:'rgba(0,144,255,1)' 点的外边框颜色 options.pointOutlineWidth {Number} default:2 点的外边框宽度 |
Returns:
创建多边形
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
|
Returns:
创建线段
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
|
Returns:
绘制矩形区域
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
|
Returns:
根据条件来结束绘制
进入编辑模式 编辑对象坐标点位置
Name | Type | Description |
---|---|---|
callback |
function | optional callback(Array[Cartesian3,……])回调函数用于返回标记后的坐标点数组 |
退出编辑模式
清除编辑模式下的entity callback
设置相机锁定与不锁定状态
Name | Type | Description |
---|---|---|
viewer |
Viewer | 主视图类 |
state |
Boolean | false解锁镜头移动,true锁定镜头移动 |