TrackLine

拉线结果

new YS.TrackLine(earth, point1, point2, feature)

拉线工具使用后获取的数据
Name Type Description
earth YSEarth YouScene.earth
point1 XYZ 线起点坐标 Object={x:114,y:32,z:1000}
point2 XYZ 线终点坐标 Object={x:114,y:33,z:1000}
feature Object 选中对象
Implements:

Members

readonlyjson : json

拉线工具返回的json对象
Properties:
Name Type Description
earth YSEarth
tool ViewTool 当前使用的工具
point1 XYZ 线起点坐标
Properties
Name Type Description
x Number 线起点经度,地理坐标,单位度
y Number 线起点纬度,地理坐标,单位度
z Number 线起点高度,单位米
point2 XYZ 线起点坐标
Properties
Name Type Description
x Number 线终点经度,地理坐标,单位度
y Number 线终点纬度,地理坐标,单位度
z Number 线终点高度,单位米
feature Object 结束时选中的模型
Implements: