Commit cfbd82bc authored by Sanjiban Bairagya's avatar Sanjiban Bairagya Committed by Sanjiban Bairagya

Keep the position marker centered properly on the

route during navigation
parent 0703e705
......@@ -11,42 +11,34 @@
import QtQuick 2.3
Item {
Rectangle {
id: root
property alias angle: rotation.angle
property int posX: 0
property int posY: 0
property int radius: 0
width: 100
height: 100
x: posX - width * 0.5
y: posY - height * 0.5
Rectangle {
width: root.radius
height: root.radius
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
color: "#40ff0000"
border.color: "#ff0000"
border.width: 2
radius: width*0.5
width: radius
height: radius
color: "#40ff0000"
border.color: "#ff0000"
border.width: 2
Image {
id: image
source: "qrc:///navigation_blue.png"
width: 100
height: 100
anchors.centerIn: parent
transform: Rotation {
id: rotation
origin {
x: image.width * 0.5
y: image.height * 0.5
}
}
}
Image {
id: image
source: "qrc:///navigation_blue.png"
width: 30
height: 30
anchors.centerIn: parent
transform: Rotation {
id: rotation
origin {
x: image.width * 0.5
y: image.height * 0.5
}
}
}
}
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