5import QGroundControl.Controls
7/// Marker for displaying a mission item on the map
11 property var missionItem
12 property int sequenceNumber
16 anchorPoint.x: sourceItem.anchorPointX
17 anchorPoint.y: sourceItem.anchorPointY
20 MissionItemIndexLabel {
22 checked: _isCurrentItem
23 label: missionItem.abbreviation
24 index: missionItem.abbreviation.charAt(0) > 'A' && missionItem.abbreviation.charAt(0) < 'z' ? -1 : missionItem.sequenceNumber
25 gimbalYaw: missionItem.missionGimbalYaw
26 vehicleYaw: missionItem.missionVehicleYaw
27 showGimbalYaw: !isNaN(missionItem.missionGimbalYaw)
28 highlightSelected: true
29 onClicked: _item.clicked()
30 opacity: _item.opacity
32 property bool _isCurrentItem: missionItem ? missionItem.isCurrentItem || missionItem.hasCurrentChildItem : false