用于定义模型的动画轨迹

mdel.moveAlong(
new ModelAnimationPath([
{
position: [lng, lat, height],
time: new Date(),
},
{
position: [lng + 0.00001, lat, height],
time: new Date(new Date().getTime() + 2000),
},
{
position: [
lng + 0.00001,
lat + 0.00001,
height,
],
time: new Date(new Date().getTime() + 4000),
},
]),
true,
true,
0,
() => {
console.log('reachEndNode');
},
(e) => {
console.log('reachNode', e.index);
}
);

Constructors

Constructors