From 452a1a4d5784cfc191485f4e77133ef3090ee693 Mon Sep 17 00:00:00 2001 From: Arseniy Movshev Date: Sun, 27 Nov 2022 20:25:43 +0000 Subject: changes to compass, overlays and waypoints a very messy commit: - add waypoints to show up on the map - fix compass to work correctly - fix centering of buttons on flat tyre watches --- src/main.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/main.qml') diff --git a/src/main.qml b/src/main.qml index 49abcb6..acca47a 100644 --- a/src/main.qml +++ b/src/main.qml @@ -2,6 +2,8 @@ import QtQuick 2.0 import org.asteroid.controls 1.0 import QtPositioning 5.15 import QtLocation 5.15 +import Nemo.Configuration 1.0 +import QtSensors 5.3 Application { centerColor: "#6e90e9" @@ -20,11 +22,20 @@ Application { PositionSource { id: positionProvider } + Compass { + id: compass + active: enableCompass.value + } LayerStack { id: pageStack anchors.fill: parent firstPage: mainMapView } + ConfigurationValue { + id: enableCompass + key: "/map/enableCompass" + defaultValue: true + } Component { id: mainMapView -- cgit v1.2.3-54-g00ecf