Appearance
surveyLengthTool
SurveyLengthTool
Kind: global class
new SurveyLengthTool(viewer)
多点距离测量
Param | Type | Description |
---|---|---|
viewer | Viewer | 场景类 |
SurveyLengthTool.enabled(Boolean)
测量开关
Kind: static method of SurveyLengthTool
Param | Type | Description |
---|---|---|
Boolean | string | 布尔值 |
SurveyLengthTool.addPoint(point)
添加标识点
Kind: static method of SurveyLengthTool
Param | Type | Description |
---|---|---|
point | Array | 数组,标识点的坐标。 |
SurveyLengthTool.result() ⇒
返回长度和对应线段的中心点坐标
Kind: static method of SurveyLengthTool
Returns: distance - 数字,距离长度。数组,线段的中心点坐标