在平面场景,道路分析后得到一条路径,沿着路径飞行,窗口显示如上图显示,飞行过程无法显示三维场景,但是在飞行到达目的地后就会出现目的地处的场景。就是说飞行的过程中无法显示沿路的场景。但是通沿着.fpf文件中的路径飞行时,可以显示飞行场景。
开始飞行的代码如下:
/// 开始飞行
public void BeginFly(Double speed, Boolean isCircle)
{
CurrentFlyManager.Routes.Clear();
Route route = new Route();
route.FromGeoLine3D(m_line3D);
route.IsAltitudeFixed = false;
route.IsFlyAlongTheRoute = true;
route.IsHeadingFixed = false;
route.IsTiltFixed = false;
route.IsStopsVisible = false;
route.IsFlyingLoop = isCircle;
route.Speed = speed;
for (int i = 0; i < route.Stops.Count; i++)
{
Camera camera = route.Stops[i].Camera;
camera.Altitude = 10;
camera.Tilt = 90;
camera.Heading = 90;
route.Stops[i].Camera = camera;
route.Stops[i].TurnTime = 0.2;
}
CurrentFlyManager.Routes.Add(route);
CurrentFlyManager.Scene = m_sceneControl.Scene;
//Camera sceneCamera = new Camera(432480.98, 3895804.64, 300);
//sceneCamera.Altitude = 10;
//sceneCamera.Tilt = 90;
//m_line3D = new GeoLine3D();
//m_sceneControl.Scene.Camera = sceneCamera;
CurrentFlyManager.StopArrived -= new StopArrivedEventHandler(CurrentFlyManager_StopArrived);
CurrentFlyManager.StopArrived += new StopArrivedEventHandler(CurrentFlyManager_StopArrived);
CurrentFlyManager.Play();
m_sceneControl.Scene.Refresh();
}
请问这是什么问题呢。