1. AroundFlight
1.1. 初始化 new AroundFlight(options, geomap)
相机环绕飞行。包括绕点飞行和自身环绕飞行
Param | Type | Default | Description |
---|---|---|---|
options | Object |
配置参数如下: |
|
[options.isAroundPoint] | Boolean |
true |
是否是绕点飞行; |
[options.distance] | Number |
600 |
相机与点的距离,options.isAroundPoint为true时才有效; |
[options.duration] | Number |
120 |
飞行时间; |
[options.pitchAngle] | Number |
-30 |
俯仰角; |
[options.angle] | Number |
360 |
旋转角度; |
geomap | GeoMap | 三维场景对象。 |
Example
var aroundFlight = new AroundFlight({}, geomap);
1.2. 属性
属性名 | Type | Default | Description |
---|---|---|---|
isAroundPoint | Boolean | 是否绕点飞行 |
1.3. 方法
1.3.1. aroundFlight.startAt(position)
开始绕点飞行
Param | Type | Description |
---|---|---|
position | Array.<Number> |
绕点飞行的目标点,形如[lng, lat, height],经纬度单位为度,高程为米 |
1.3.2. aroundFlight.pause()
暂停飞行
1.3.3. aroundFlight.continue()
继续飞行
1.3.4. aroundFlight.stop()
终止飞行