aboutsummaryrefslogtreecommitdiff
path: root/src/MapWaypoint.qml
diff options
context:
space:
mode:
authorArseniy Movshev <dodoradio@outlook.com>2022-11-27 20:25:43 +0000
committerArseniy Movshev <dodoradio@outlook.com>2023-01-07 15:46:45 +0000
commit452a1a4d5784cfc191485f4e77133ef3090ee693 (patch)
tree98cc099e6000848b034a58a2cedbdf86af6379bd /src/MapWaypoint.qml
parentde2b3d293d97eb85dc920e6facec684e79c69d43 (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/MapWaypoint.qml20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/MapWaypoint.qml b/src/MapWaypoint.qml
new file mode 100644
index 0000000..1300cb0
--- /dev/null
+++ b/src/MapWaypoint.qml
@@ -0,0 +1,20 @@
+import QtQuick 2.0
+import org.asteroid.controls 1.0 as Asteroid
+import QtPositioning 5.15
+import QtLocation 5.15
+
+MapQuickItem {
+ id: root
+ anchorPoint.x: width/2
+ anchorPoint.y: height
+ zoomLevel: 0
+ autoFadeIn: false
+ property string iconName
+ property color iconColor
+ sourceItem: Asteroid.Icon {
+ width: Asteroid.Dims.w(12)
+ height: width
+ name: root.iconName
+ color: root.iconColor
+ }
+}