From 30d24cbc67ef416672a3386b10be8fe6711c65d7 Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Fri, 2 Nov 2018 14:13:07 +0900 Subject: use mapbox as navigation --- app/qml/Main.qml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app/qml/Main.qml (limited to 'app/qml/Main.qml') diff --git a/app/qml/Main.qml b/app/qml/Main.qml new file mode 100644 index 0000000..a2861e5 --- /dev/null +++ b/app/qml/Main.qml @@ -0,0 +1,28 @@ +import QtGraphicalEffects 1.0 +import QtLocation 5.9 +import QtPositioning 5.0 +import QtQuick 2.0 +import QtQuick.Controls 2.2 +import QtQuick.Layouts 1.0 + +import com.mapbox.cheap_ruler 1.0 +import "qrc:/qml" + +ApplicationWindow { + id: window + + title: "QT MapboxGL Turn By Turn Navigation Demo" + height: 768 + width: 1024 + visible: true + + Item { + anchors.centerIn: parent + width: parent.width + height: parent.height + + MapWindow { + anchors.fill: parent + } + } +} -- cgit 1.2.3-korg