修改bug
This commit is contained in:
parent
694472c9b7
commit
f7a638159e
@ -514,9 +514,12 @@ namespace Plane.FormationCreator.Views
|
|||||||
// var routePoint = Route.Points[1];
|
// var routePoint = Route.Points[1];
|
||||||
// routePoint.Lat = info.TargetLat;
|
// routePoint.Lat = info.TargetLat;
|
||||||
// routePoint.Lng = info.TargetLng;
|
// routePoint.Lng = info.TargetLng;
|
||||||
|
if (Route != null)
|
||||||
|
{
|
||||||
Route.Points.RemoveAt(1);
|
Route.Points.RemoveAt(1);
|
||||||
Route.Points.Add(marker.Position);
|
Route.Points.Add(marker.Position);
|
||||||
this.Route.RegenerateShape(_map);
|
this.Route.RegenerateShape(_map);
|
||||||
|
}
|
||||||
//routePoint.Altitude = info.TargetAlt;
|
//routePoint.Altitude = info.TargetAlt;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -32,8 +32,8 @@ namespace Plane.FormationCreator.Views
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
var camera = view3d.Camera as PerspectiveCamera;
|
var camera = view3d.Camera as PerspectiveCamera;
|
||||||
camera.Position = new Point3D(0, 0, 0);
|
camera.Position = new Point3D(0, 0, 1);
|
||||||
camera.LookDirection = new Vector3D(0, 1, 0);
|
camera.LookDirection = new Vector3D(0,1,0);//new Vector3D(0, 1, 0);
|
||||||
camera.UpDirection = new Vector3D(0, 0, 1);
|
camera.UpDirection = new Vector3D(0, 0, 1);
|
||||||
camera.FieldOfView = 120;
|
camera.FieldOfView = 120;
|
||||||
_flightTaskManager = ServiceLocator.Current.GetInstance<FlightTaskManager>();
|
_flightTaskManager = ServiceLocator.Current.GetInstance<FlightTaskManager>();
|
||||||
|
Loading…
Reference in New Issue
Block a user