QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
FlyViewCustomLayer.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Dialogs
4import QtQuick.Layouts
5
6import QtLocation
7import QtPositioning
8import QtQuick.Window
9import QtQml.Models
10
11import QGroundControl
12import QGroundControl.Controls
13import QGroundControl.FlyView
14import QGroundControl.FlightMap
15
16// To implement a custom overlay copy this code to your own control in your custom code source. Then override the
17// FlyViewCustomLayer.qml resource with your own qml. See the custom example and documentation for details.
18Item {
19 id: _root
20
21 property var parentToolInsets // These insets tell you what screen real estate is available for positioning the controls in your overlay
22 property var totalToolInsets: _toolInsets // These are the insets for your custom overlay additions
23 property var mapControl
24
25 // since this file is a placeholder for the custom layer in a standard build, we will just pass through the parent insets
26 QGCToolInsets {
27 id: _toolInsets
28 leftEdgeTopInset: parentToolInsets.leftEdgeTopInset
29 leftEdgeCenterInset: parentToolInsets.leftEdgeCenterInset
30 leftEdgeBottomInset: parentToolInsets.leftEdgeBottomInset
31 rightEdgeTopInset: parentToolInsets.rightEdgeTopInset
32 rightEdgeCenterInset: parentToolInsets.rightEdgeCenterInset
33 rightEdgeBottomInset: parentToolInsets.rightEdgeBottomInset
34 topEdgeLeftInset: parentToolInsets.topEdgeLeftInset
35 topEdgeCenterInset: parentToolInsets.topEdgeCenterInset
36 topEdgeRightInset: parentToolInsets.topEdgeRightInset
37 bottomEdgeLeftInset: parentToolInsets.bottomEdgeLeftInset
38 bottomEdgeCenterInset: parentToolInsets.bottomEdgeCenterInset
39 bottomEdgeRightInset: parentToolInsets.bottomEdgeRightInset
40 }
41}