summaryrefslogtreecommitdiff
path: root/examples/location/mapviewer/map/PolylineItem.qml
blob: 03031707fb493a88a6138ebc2918868aaf359dfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
import QtLocation

//TODO: remove/refactor me when items are integrated

MapPolyline {

    line.color: "#46a2da"
    line.width: 4
    opacity: 0.25
    smooth: true

    function setGeometry(markers, index){
        for (var i = index; i<markers.length; i++){
            addCoordinate(markers[i].coordinate)
        }
    }
}