diff --git a/src/FlightDisplay/FlyViewMap.qml b/src/FlightDisplay/FlyViewMap.qml index 856f59efb3aa..f7ec8c10a850 100644 --- a/src/FlightDisplay/FlyViewMap.qml +++ b/src/FlightDisplay/FlyViewMap.qml @@ -495,6 +495,13 @@ FlightMap { anchorPoint.x: sourceItem.anchorPointX anchorPoint.y: sourceItem.anchorPointY + Connections { + target: _activeVehicle + onRoiCoordChanged: { + roiLocationItem.show(centerCoord) + } + } + MouseArea { anchors.fill: parent onClicked: { @@ -638,7 +645,6 @@ FlightMap { if (popup.opened) { popup.close() } - roiLocationItem.show(mapClickCoord) globals.guidedControllerFlyView.executeAction(globals.guidedControllerFlyView.actionROI, mapClickCoord, 0, false) } }