Constructor
new MeasureAzimutht(viewer, opt)
Parameters:
Name | Type | Description |
---|---|---|
viewer |
Cesium.Viewer | 地图viewer对象 |
opt |
Object | 基础配置 |
Extends
Members
objId
- Overrides:
Properties:
Name | Type | Description |
---|---|---|
objId |
String | 唯一标识id |
polyline
Properties:
Name | Type | Description |
---|---|---|
polyline |
Cesium.Entity | 线 |
positions
Properties:
Name | Type | Description |
---|---|---|
positions |
Array.<Cesium.Cartesian3> | 线坐标数组 |
promptStyle
- Overrides:
Properties:
Name | Type | Description |
---|---|---|
promptStyle |
Object | 鼠标弹窗样式 |
state
- Overrides:
Properties:
Name | Type | Description |
---|---|---|
state |
String | 标识当前状态 no startCreate creating endCreate startEdit endEdit editing |
style
Properties:
Name | Type | Description |
---|---|---|
style |
Object | 绘制样式(polyline),具体配置见style; |
unit
- Overrides:
Properties:
Name | Type | Description |
---|---|---|
unit |
String | 单位 |
Methods
destroy()
- Description:
- 销毁
- Overrides:
done()
- Description:
- 结束当前操作 包括编辑和绘制
- Overrides:
endCreate()
- Description:
- 结束创建
endEdit()
- Description:
- 结束编辑
- Overrides:
setUnit(unit)
- Description:
- 设置单位
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
unit |
String |
start(callback)
- Description:
- 开始绘制
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | 绘制成功后回调函数 |
startEdit(callback)
- Description:
- 开始编辑
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | 编辑成功后回调函数 |