BaseMeasure

BaseMeasure

量算基类

Constructor

new BaseMeasure(viewer, opt)

Description:
  • 量算基类,一般不直接实例化,而实例化其子类(见下方Classes)
Parameters:
Name Type Description
viewer Cesium.Viewer 地图viewer对象
opt Object 基础配置

Classes

MeasureAzimutht
MeasureGroundDistance
MeasureHeight
MeasureLnglat
MeasureSection
MeasureSlope
MeasureSpaceArea
MeasureSpaceDistance
MeasureTriangle

Members

objId

Properties:
Name Type Description
objId String 唯一标识id

promptStyle

Properties:
Name Type Description
promptStyle Object 鼠标弹窗样式

state

Properties:
Name Type Description
state String 标识当前状态 no startCreate creating endCreate startEdit endEdit editing

unit

Properties:
Name Type Description
unit String 单位

Methods

destroy()

Description:
  • 销毁

done()

Description:
  • 结束当前操作 包括编辑和绘制

endEdit()

Description:
  • 结束编辑

setUnit(unit)

Description:
  • 设置单位
Parameters:
Name Type Description
unit String

start(callback)

Description:
  • 开始绘制
Parameters:
Name Type Description
callback function 绘制成功后回调函数

startEdit(callback)

Description:
  • 开始编辑
Parameters:
Name Type Description
callback function 编辑成功后回调函数