Commit f1a7db2f authored by Torsten Rahn's avatar Torsten Rahn Committed by Torsten Rahn

Display a circle instead of an arrow for the position marker is speed

is less than 0.5 m/s.
parent 6e181e2d
......@@ -156,6 +156,7 @@ ApplicationWindow {
showAccuracy: navigationManager.deviated
allowRadiusAnimation: !zoomDetectionTimer.running
allowPositionAnimation: !panningDetectionTimer.running
speed: marbleMaps.speed
}
MouseArea {
......
......@@ -20,6 +20,7 @@ Item {
property real radius: 100
property bool allowRadiusAnimation: true
property bool allowPositionAnimation: true
property real speed: 0
Behavior on radius {
enabled: allowRadiusAnimation
......@@ -52,14 +53,28 @@ Item {
radius: root.radius
}
Rectangle {
visible: root.speed < 0.5
width: Screen.pixelDensity * 4
height: width
anchors.centerIn: parent
radius: width/2
border {
color: "#f2f2f2"
width: 4
}
color: "#004a96"
}
Image {
id: image
source: "qrc:///navigation_blue.svg"
sourceSize.width: width
sourceSize.height: height
width: Screen.pixelDensity * 6
height: width
anchors.centerIn: parent
visible: root.speed >= 0.5
source: "qrc:///navigation_blue.svg"
sourceSize.width: width
sourceSize.height: height
smooth: true
rotation: root.angle
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment