diff options
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/MapWidget.qml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml index ce057d63e..7249ed632 100644 --- a/mobile-widgets/qml/MapWidget.qml +++ b/mobile-widgets/qml/MapWidget.qml @@ -38,7 +38,17 @@ Item { anchorPoint.x: 0 anchorPoint.y: mapItemImage.height coordinate: model.coordinate - sourceItem: Image { id: mapItemImage; source: "qrc:///mapwidget-marker-image" } + sourceItem: Image { + id: mapItemImage; + source: "qrc:///mapwidget-marker" + (mapHelper.model.selectedUuid === model.uuid ? "-selected" : ""); + } + + MouseArea { + anchors.fill: parent + onClicked: { + mapHelper.model.selectedUuid = model.uuid + } + } } } |