6import QGroundControl.Controls
8/// Home position map visual for MissionSettingsItem
9MissionItemMapVisualBase {
12 indicatorComponent: homeIndicatorComponent
15 id: homeIndicatorComponent
18 coordinate: control._missionItem.coordinate
19 visible: control._missionItem.specifiesCoordinate
20 z: QGroundControl.zOrderMapItems
21 opacity: control.opacity
22 anchorPoint.x: _homeImage.width / 2
23 anchorPoint.y: _homeImage.height / 2
27 source: "qrc:///qmlimages/MapHome.svg"
29 property real _smallRadiusRaw: Math.ceil((ScreenTools.defaultFontPixelHeight * ScreenTools.smallFontPointRatio) / 2)
30 property real _smallRadius: _smallRadiusRaw + ((_smallRadiusRaw % 2 == 0) ? 1 : 0)
32 width: _smallRadius * 2
34 sourceSize.width: width
35 sourceSize.height: height
36 fillMode: Image.PreserveAspectFit
40 onClicked: if (control.interactive) control.clicked(control._missionItem.sequenceNumber)