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 occluders // FlyViewOccluders: where the upstream widgets are, use these to position your controls
22 property var customOccluders: [] // Rects of your controls which cover the map, so the map keeps the vehicle out from under them. Keep them off the view center, the map recenters there
23 property var mapControl // FlyViewMap, or FlyViewGeoMapAdapter with the GeoMap engine: add GeoMap items through QGCCorePlugin::customGeoMapItems
24}