Commit 7cbe31fe authored by Dennis Nienhüser's avatar Dennis Nienhüser

Fix z-order and visibility of position marker

parent 7c69717d
......@@ -121,6 +121,17 @@ ApplicationWindow {
routingProfile: routeEditor.routingProfile
}
PositionMarker {
id: positionMarker
posX: navigationManager.snappedPositionMarkerScreenPosition.x
posY: navigationManager.snappedPositionMarkerScreenPosition.y
angle: marbleMaps.angle
visible: marbleMaps.positionAvailable && marbleMaps.positionVisible
radius: navigationManager.screenAccuracy
color: navigationManager.deviated ? "#40ff0000" : "transparent"
border.color: navigationManager.deviated ? "red" : "transparent"
}
MouseArea{
anchors.fill: parent
propagateComposedEvents: true
......@@ -291,17 +302,6 @@ ApplicationWindow {
}
]
}
PositionMarker {
id: positionMarker
posX: navigationManager.snappedPositionMarkerScreenPosition.x
posY: navigationManager.snappedPositionMarkerScreenPosition.y
angle: marbleMaps.angle
visible: true
radius: navigationManager.screenAccuracy
color: navigationManager.deviated ? "#40ff0000" : "transparent"
border.color: navigationManager.deviated ? "red" : "transparent"
}
}
}
......
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