Commit 37b61fe2 authored by DonLakeFlyer's avatar DonLakeFlyer

parent c9967c74
...@@ -31,11 +31,6 @@ FlightMap { ...@@ -31,11 +31,6 @@ FlightMap {
allowVehicleLocationCenter: !_keepVehicleCentered allowVehicleLocationCenter: !_keepVehicleCentered
planView: false planView: false
onVisibleChanged: {
// I don't know what is causing this to become invisible when a connection is dropped
if(!visible) visible = true
}
property alias scaleState: mapScale.state property alias scaleState: mapScale.state
// The following properties must be set by the consumer // The following properties must be set by the consumer
...@@ -190,7 +185,7 @@ FlightMap { ...@@ -190,7 +185,7 @@ FlightMap {
line.width: 3 line.width: 3
line.color: "red" line.color: "red"
z: QGroundControl.zOrderTrajectoryLines z: QGroundControl.zOrderTrajectoryLines
visible: true//mainIsMap visible: mainIsMap
Connections { Connections {
target: QGroundControl.multiVehicleManager target: QGroundControl.multiVehicleManager
...@@ -320,9 +315,9 @@ FlightMap { ...@@ -320,9 +315,9 @@ FlightMap {
property bool inGotoFlightMode: activeVehicle ? activeVehicle.flightMode === activeVehicle.gotoFlightMode : false property bool inGotoFlightMode: activeVehicle ? activeVehicle.flightMode === activeVehicle.gotoFlightMode : false
onInGotoFlightModeChanged: { onInGotoFlightModeChanged: {
if (!inGotoFlightMode && visible) { if (!inGotoFlightMode && gotoLocationItem.visible) {
// Hide goto indicator when vehicle falls out of guided mode // Hide goto indicator when vehicle falls out of guided mode
visible = false gotoLocationItem.visible = false
} }
} }
...@@ -330,7 +325,7 @@ FlightMap { ...@@ -330,7 +325,7 @@ FlightMap {
target: mainWindow target: mainWindow
onActiveVehicleChanged: { onActiveVehicleChanged: {
if (!activeVehicle) { if (!activeVehicle) {
visible = false gotoLocationItem.visible = false
} }
} }
} }
...@@ -368,7 +363,7 @@ FlightMap { ...@@ -368,7 +363,7 @@ FlightMap {
target: mainWindow target: mainWindow
onActiveVehicleChanged: { onActiveVehicleChanged: {
if (!activeVehicle) { if (!activeVehicle) {
visible = false orbitMapCircle.visible = false
} }
} }
} }
......
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