diff options
author | Arseniy Movshev <dodoradio@outlook.com> | 2022-11-27 20:25:43 +0000 |
---|---|---|
committer | Arseniy Movshev <dodoradio@outlook.com> | 2023-01-07 15:46:45 +0000 |
commit | 452a1a4d5784cfc191485f4e77133ef3090ee693 (patch) | |
tree | 98cc099e6000848b034a58a2cedbdf86af6379bd /src/main.qml | |
parent | de2b3d293d97eb85dc920e6facec684e79c69d43 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | src/main.qml | 11 |
1 files changed, 11 insertions, 0 deletions
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 |