QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GeoMapMissionHeightBadge.qml
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * (c) 2009-2024 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
4 *
5 * QGroundControl is licensed according to the terms in the file
6 * COPYING.md in the root of the source code directory.
7 *
8 ****************************************************************************/
9
10import QGroundControl.Controls
11import QGroundControl.GeoMap
12
13/// Small height-value annotation anchored at a coordinate, top-center (label
14/// grows down from the point) — a simplified GeoMap-native stand-in for
15/// src/QmlControls/HeightIndicator.qml, which relies on QtLocation map-style
16/// light/dark detection (QGCMapPalette/QGCMapLabel) not available on GeoMap.
17GeoMapItem {
18 id: root
19
20 property alias text: label.text
21
22 altitudeMode: GeoMapItem.ClampToGround
23 anchorPoint: Qt.point(width / 2, 0)
24 width: label.implicitWidth
25 height: label.implicitHeight
26
27 QGCLabel {
28 id: label
29
30 color: "white"
31 font.bold: true
32 }
33}