LSDistanceMeasure

优质
小牛编辑
131浏览
2023-12-01

new LSGlobe.LSDistanceMeasure(viewer)

LSDiatanceMeasure是空间距离量测的类,能实现在空间的点与点之间距离的量算。

NameTypeDescription
viewer

LSGlobe.Viewer

optional
Properties:
NameTypeAttributesDescription
enable

Boolean

<optional>

对象可不可用,默认false情况下,说明此对象不可用.

Members

length

获取距离

unit

获取和设置距离量算的单位

Methods

addPoint3D()

鼠标左击事件需要调用此方法,添加距离量算过程中不断点击添加的点。

addPointTemp()

鼠标移动事件需要调用此方法,添加距离量算过程中鼠标不断移动的临时点。

clear()

用来清除距离量测的对象。

finish()

鼠标右击事件需要调用此方法,用来结束空间距离量测。