diff --git a/src/qml/LocationsPage.qml b/src/qml/LocationsPage.qml index d0386e9f6..a4c73d5cf 100644 --- a/src/qml/LocationsPage.qml +++ b/src/qml/LocationsPage.qml @@ -21,6 +21,7 @@ Kirigami.Page { id: mapView anchors.fill: parent map.plugin: OsmLocationPlugin.plugin + visible: mapView.map.mapItems.length !== 0 map.center: { let c = LocationHelper.center(LocationHelper.unite(locationsModel.boundingBox, liveLocationsModel.boundingBox)); @@ -52,11 +53,6 @@ Kirigami.Page { delegate: LocationMapItem {} } - Kirigami.PlaceholderMessage { - text: i18n("There are no locations shared in this room.") - visible: mapView.map.mapItems.length === 0 - anchors.centerIn: parent - } Connections { target: mapView.map function onCopyrightLinkActivated() { @@ -64,4 +60,10 @@ Kirigami.Page { } } } + + Kirigami.PlaceholderMessage { + text: i18n("There are no locations shared in this room.") + visible: mapView.map.mapItems.length === 0 + anchors.centerIn: parent + } }