bcgis-type
Version:
The SDK is based on Cesium for secondary development of 2, 3D all-in-one WebGis application framework, the framework optimizes the use of Cesium and add some additional features, designed for developers to quickly build WebGis applications.
65 lines (64 loc) • 1.46 kB
TypeScript
import Viewer from "../../viewer/Viewer";
import Animation from "../Animation";
/**
* 定点巡航
* ```example
* let flying = new BC.Flying(viewer)
* flying.positions = ['121.234,21.212,0,-29', '121.435,21.212,0,-29']
* flying.start()
* ```
*/
declare class Flying extends Animation {
private _positions;
private _durations;
private _currentIndex;
private _timer;
/**
*
* @param viewer 3D场景
* @param options 选项
*/
constructor(viewer: Viewer, options?: {
/**是否循环 */
loop: boolean;
/**驻留时间 */
dwellTime: number;
/**回调函数 */
callback: any;
});
/**
* 类型
* @internal
*/
get type(): any;
/**
* 巡航路线
*/
set positions(positions: any[]);
/**
* 巡航路线
*/
get positions(): any[];
/**
* 每个点位的飞行间隔时间,当数组长度为 1 时,每个间隔时间相同,
* 如果不为 1 时,长度必须和点位长度相等
*/
set durations(durations: number[]);
get durations(): number[];
protected _bindEvent(): void;
protected _unbindEvent(): void;
private _cameraFly;
/**
* 开始
*/
start(): this;
/**
* 暂停
*/
pause(): this;
/**
* 继续
*/
restore(): this;
}
export default Flying;