new FlyLine(viewer, optionsopt)
飞行路线管理类
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
Viewer | 场景对象 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
带有以下属性的对象: Properties
|
Members
groundPosition :Object
求与卫星中心射线与地球相交点
Type:
- Object
hdr :Object
获取当前hdr角度
Type:
- Object
heading :Number
heading角
Type:
- Number
indexForFlyOK :Number
已经飞行过的点index
Type:
- Number
info :Object
当前信息
Type:
- Object
matrix :Matrix4
获取当前矩阵
Type:
- Matrix4
orientation :Number
获取当前角度
Type:
- Number
pitch :Number
pitch角
Type:
- Number
popup :Object
提示信息
Type:
- Object
position :Object
当前点
Type:
- Object
roll :Number
roll角
Type:
- Number
Methods
clampToGround(onEnd, opts)
计算贴地线
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
onEnd |
function | 计算结束后执行的回调函数,传入参数为{lonlats: XXX,speeds: XXX} |
||||||||||||||||
opts |
Object | 带有以下属性的对象: Properties
|
destroy()
销毁对象,释放资源
getTerrainHeight(calback, opts)
获取剖面数据
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
calback |
function | 计算结束后执行的回调函数,传入参数为{lonlats: XXX,speeds: XXX} |
||||||||||||||||
opts |
Object | 带有以下属性的对象: Properties
|
pause()
暂停
proceed()
继续
start(endfun)
开始漫游
Parameters:
Name | Type | Description |
---|---|---|
endfun |
function | 结束回调 |
stop()
停止,结束漫游
toCZML() → {Array}
导出CZML数据
Returns:
obj
- Type
- Array
toGeoJSON() → {Object}
返回配置信息的Json数据
Returns:
obj
- Type
- Object
updateConfig(params)
更新样式 作用等同于updateStyle
Parameters:
Name | Type | Description |
---|---|---|
params |
Object | 支持构造函数中的相关参数 |
updateStyle(params)
更新样式
Parameters:
Name | Type | Description |
---|---|---|
params |
Object | 支持构造函数中的相关参数 |