|
|
@ -39,7 +39,7 @@ MapQuickItem { |
|
|
|
|
|
|
|
|
|
|
|
anchorPoint.x: vehicleIcon.width / 2 |
|
|
|
anchorPoint.x: vehicleIcon.width / 2 |
|
|
|
anchorPoint.y: vehicleIcon.height / 2 |
|
|
|
anchorPoint.y: vehicleIcon.height / 2 |
|
|
|
visible: vehicle.coordinateValid |
|
|
|
visible: vehicle && vehicle.coordinateValid |
|
|
|
|
|
|
|
|
|
|
|
sourceItem: Image { |
|
|
|
sourceItem: Image { |
|
|
|
id: vehicleIcon |
|
|
|
id: vehicleIcon |
|
|
@ -51,7 +51,7 @@ MapQuickItem { |
|
|
|
transform: Rotation { |
|
|
|
transform: Rotation { |
|
|
|
origin.x: vehicleIcon.width / 2 |
|
|
|
origin.x: vehicleIcon.width / 2 |
|
|
|
origin.y: vehicleIcon.height / 2 |
|
|
|
origin.y: vehicleIcon.height / 2 |
|
|
|
angle: vehicle.heading |
|
|
|
angle: vehicle ? vehicle.heading : 0 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|