|
@@ -126,7 +126,7 @@ class FlyGLTFEvent{
|
|
|
currentAfterPosition[1] + offsetY,
|
|
|
currentAfterPosition[2] + 40
|
|
|
];
|
|
|
- this.view.camera = {
|
|
|
+ this.view.goTo({
|
|
|
position:{
|
|
|
x:mapPosition[0],
|
|
|
y:mapPosition[1],
|
|
@@ -136,7 +136,21 @@ class FlyGLTFEvent{
|
|
|
},
|
|
|
heading: heading,
|
|
|
tilt: 80
|
|
|
- };
|
|
|
+ },{
|
|
|
+ duration: 1000,
|
|
|
+ easing: "linear"
|
|
|
+ })
|
|
|
+ // this.view.camera = {
|
|
|
+ // position:{
|
|
|
+ // x:mapPosition[0],
|
|
|
+ // y:mapPosition[1],
|
|
|
+ // z:mapPosition[2],
|
|
|
+ // type:"point",
|
|
|
+ // spatialReference:this.view.spatialReference
|
|
|
+ // },
|
|
|
+ // heading: heading,
|
|
|
+ // tilt: 80
|
|
|
+ // };
|
|
|
}
|
|
|
bus_1.emit('SendMessage', {
|
|
|
action:"CurrentUavInfo",
|
|
@@ -146,7 +160,7 @@ class FlyGLTFEvent{
|
|
|
})
|
|
|
|
|
|
|
|
|
- }, 1);
|
|
|
+ }, 1000);
|
|
|
|
|
|
}
|
|
|
// 计算两个点之间的heading和tilt
|