From 386b34f666855cfaa6757ac6024578c2935e9a62 Mon Sep 17 00:00:00 2001 From: Nate Weibley Date: Thu, 16 Jun 2016 16:27:44 -0400 Subject: [PATCH] Bind direction to QGeoCoordinates --- src/FlightDisplay/FlightDisplayViewMap.qml | 4 ++-- src/FlightMap/MapItems/MissionLineView.qml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/FlightDisplay/FlightDisplayViewMap.qml b/src/FlightDisplay/FlightDisplayViewMap.qml index bbd9d04ade..14926396f6 100644 --- a/src/FlightDisplay/FlightDisplayViewMap.qml +++ b/src/FlightDisplay/FlightDisplayViewMap.qml @@ -67,8 +67,8 @@ FlightMap { line.color: "red" z: QGroundControl.zOrderMapItems - 1 path: [ - { latitude: object.coordinate1.latitude, longitude: object.coordinate1.longitude }, - { latitude: object.coordinate2.latitude, longitude: object.coordinate2.longitude }, + object.coordinate1, + object.coordinate2, ] } } diff --git a/src/FlightMap/MapItems/MissionLineView.qml b/src/FlightMap/MapItems/MissionLineView.qml index e3b297d3e6..9d7a3b709e 100644 --- a/src/FlightMap/MapItems/MissionLineView.qml +++ b/src/FlightMap/MapItems/MissionLineView.qml @@ -27,8 +27,8 @@ MapItemView { z: QGroundControl.zOrderMapItems - 1 // Under item indicators path: [ - { latitude: object.coordinate1.latitude, longitude: object.coordinate1.longitude }, - { latitude: object.coordinate2.latitude, longitude: object.coordinate2.longitude }, + object.coordinate1, + object.coordinate2, ] } } -- GitLab