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