Skip to content
On this page

surveyLengthTool

SurveyLengthTool

Kind: global class

new SurveyLengthTool(viewer)

多点距离测量

ParamTypeDescription
viewerViewer场景类

SurveyLengthTool.enabled(Boolean)

测量开关

Kind: static method of SurveyLengthTool

ParamTypeDescription
Booleanstring布尔值

SurveyLengthTool.addPoint(point)

添加标识点

Kind: static method of SurveyLengthTool

ParamTypeDescription
pointArray数组,标识点的坐标。

SurveyLengthTool.result() ⇒

返回长度和对应线段的中心点坐标

Kind: static method of SurveyLengthTool
Returns: distance - 数字,距离长度。数组,线段的中心点坐标