12import QGroundControl.Controls
13import QGroundControl.FlyView
14import QGroundControl.FlightMap
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.
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
25 // since this file is a placeholder for the custom layer in a standard build, we will just pass through the parent insets
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