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/MapWaypoint.qml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/MapWaypoint.qml (limited to 'src/MapWaypoint.qml') 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 + } +} -- cgit v1.2.3-54-g00ecf