Show a map for location events

This commit is contained in:
Tobias Fella
2023-06-17 13:49:33 +02:00
committed by Volker Krause
parent d14db326bb
commit 5b4ae764cf
9 changed files with 295 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ TimelineContainer {
* a user's location.
*/
required property string asset
required property var content
ColumnLayout {
Layout.maximumWidth: root.contentMaxWidth
@@ -92,6 +93,10 @@ TimelineContainer {
TapHandler {
acceptedButtons: Qt.LeftButton
onTapped: {
let map = fullScreenMap.createObject(parent, {content: root.content});
map.open()
}
onLongPressed: openMessageContext("")
}
TapHandler {
@@ -99,5 +104,9 @@ TimelineContainer {
onTapped: openMessageContext("")
}
}
Component {
id: fullScreenMap
FullScreenMap { }
}
}
}