Commit 386b34f6 authored by Nate Weibley's avatar Nate Weibley

Bind direction to QGeoCoordinates

parent 51712236
...@@ -67,8 +67,8 @@ FlightMap { ...@@ -67,8 +67,8 @@ FlightMap {
line.color: "red" line.color: "red"
z: QGroundControl.zOrderMapItems - 1 z: QGroundControl.zOrderMapItems - 1
path: [ path: [
{ latitude: object.coordinate1.latitude, longitude: object.coordinate1.longitude }, object.coordinate1,
{ latitude: object.coordinate2.latitude, longitude: object.coordinate2.longitude }, object.coordinate2,
] ]
} }
} }
......
...@@ -27,8 +27,8 @@ MapItemView { ...@@ -27,8 +27,8 @@ MapItemView {
z: QGroundControl.zOrderMapItems - 1 // Under item indicators z: QGroundControl.zOrderMapItems - 1 // Under item indicators
path: [ path: [
{ latitude: object.coordinate1.latitude, longitude: object.coordinate1.longitude }, object.coordinate1,
{ latitude: object.coordinate2.latitude, longitude: object.coordinate2.longitude }, object.coordinate2,
] ]
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment