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