diff options
-rw-r--r-- | mobile-widgets/qml/MapWidget.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml index c3974f9e3..e581ade38 100644 --- a/mobile-widgets/qml/MapWidget.qml +++ b/mobile-widgets/qml/MapWidget.qml @@ -45,6 +45,21 @@ Item { sourceItem: Image { id: mapItemImage; source: "qrc:///mapwidget-marker" + (mapHelper.model.selectedUuid === model.uuid ? "-selected" : ""); + + SequentialAnimation { + id: mapItemImageAnimation; + PropertyAnimation { + target: mapItemImage; property: "scale"; from: 1.0; to: 0.7; duration: 120; + } + PropertyAnimation { + target: mapItemImage; property: "scale"; from: 0.7; to: 1.0; duration: 80; + } + } + + onSourceChanged: { + if (mapHelper.model.selectedUuid === model.uuid) + mapItemImageAnimation.restart(); + } } MouseArea { |