Extends
Members
Methods
# addControlPoint(position, insertIndex) → {boolean}
添加控制点
Parameters:
| Name | Type | Description |
|---|---|---|
position |
Cesium.Cartesian3
|
增加的控制点 |
insertIndex |
number
|
增加的锚点的下标 |
- 添加成功与否
boolean
# removeControlPoint(anchorIndex) → {boolean}
删除控制点
Parameters:
| Name | Type | Description |
|---|---|---|
anchorIndex |
number
|
锚点的下标 |
- 删除成功与否
boolean
# start() → {Edit}
开始测量
Properties:
| Name | Type | Description |
|---|---|---|
viewer |
Viewer
|
场景对象 |
layer |
Layer
|
图层 |
onDrawStop |
function
|
停止绘制 |
onCalc |
function
|
取消绘制绘制 |
- Overrides:
- See:
- 当前对象,链式调用
# updateAnchorPosition(anchorIndex, newPosition)
更新坐标
Parameters:
| Name | Type | Description |
|---|---|---|
anchorIndex |
number
|
锚点的下标 |
newPosition |
Cesium.Cartesian3
|
坐标 |