CorridorScanMapVisual.qml 1.04 KB
Newer Older
1 2
/****************************************************************************
 *
3
 * (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
 *
 * QGroundControl is licensed according to the terms in the file
 * COPYING.md in the root of the source code directory.
 *
 ****************************************************************************/

import QtQuick          2.3
import QtQuick.Controls 1.2
import QtLocation       5.3
import QtPositioning    5.3

import QGroundControl               1.0
import QGroundControl.Controls      1.0

/// Corridor Scan Complex Mission Item visuals
19 20
TransectStyleMapVisuals {
    polygonInteractive: false
21

22
    property bool _currentItem: object.isCurrentItem
23 24 25 26 27

    QGCMapPolylineVisuals {
        id:             mapPolylineVisuals
        mapControl:     map
        mapPolyline:    object.corridorPolyline
28
        interactive:    _currentItem && parent.interactive
29 30
        lineWidth:      3
        lineColor:      "#be781c"
31 32
        visible:        _currentItem
        opacity:        parent.opacity
33 34
    }
}