Class

EditBezierCurve

EditBezierCurve(graphic, options)

Constructor

# new EditBezierCurve(graphic, options)

编辑贝塞尔曲线

Parameters:
Name Type Description
graphic Graphic

需要编辑的图形

options Object

额外参数

Author:
  • xyj

Extends

Members

Object

# readonly editGraphicTool

编辑工具

Overrides:

Methods

# addControlPoint(position, insertIndex) → {boolean}

添加控制点

Parameters:
Name Type Description
position Cesium.Cartesian3

增加的控制点

insertIndex number

增加的锚点的下标

  • 添加成功与否
boolean

# cancelEdit()

取消编辑

# destroy()

销毁

# finishEdit()

完成编辑

# getEditState()

获取编辑状态

# 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:
  • 当前对象,链式调用
Edit

# stop() → {Edit}

停止编辑

Overrides:
  • 当前对象
Edit

# updateAnchorPosition(anchorIndex, newPosition)

更新坐标

Parameters:
Name Type Description
anchorIndex number

锚点的下标

newPosition Cesium.Cartesian3

坐标