Commit 6ccc57eb authored by Volker Krause's avatar Volker Krause
Browse files

Add long-press element picking for interactive elements

Allows access to elevator/escalator details for example.
parent 456fc467
......@@ -247,6 +247,13 @@ Kirigami.Page {
elementDetailsSheet.sheetOpen = true;
}
}
onElementLongPressed: {
// this provides info model access for elements with other interactions
infoModel.element = element;
if (infoModel.name != "" || infoModel.debug) {
elementDetailsSheet.sheetOpen = true;
}
}
}
onCoordinateChanged: map.mapLoader.loadForCoordinate(coordinate.y, coordinate.x);
......
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