2023-12-15 15:48:40 +00:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
|
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
2024-01-22 13:02:02 +00:00
|
|
|
Item {
|
2023-12-15 15:48:40 +00:00
|
|
|
visible: true
|
|
|
|
|
|
|
|
MapView {
|
|
|
|
id: mapView
|
|
|
|
anchors.fill: parent
|
|
|
|
zoomLevel: 5
|
|
|
|
mapType: actionsLayer.mapType
|
|
|
|
lightningLayerVisible: actionsLayer.lightningLayerVisible
|
|
|
|
distanceLayerVisible: actionsLayer.distanceLayerVisible
|
|
|
|
}
|
|
|
|
|
|
|
|
ActionsLayer {
|
|
|
|
id: actionsLayer
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.margins: 15
|
|
|
|
lightningLayerVisible: true
|
|
|
|
distanceLayerVisible: false
|
|
|
|
onRecenterRequested: mapView.recenter();
|
|
|
|
}
|
|
|
|
|
2024-01-18 11:45:31 +00:00
|
|
|
Binding {
|
|
|
|
target: LightningController
|
|
|
|
property: "distanceTimeLayerEnabled"
|
|
|
|
value: actionsLayer.distanceLayerVisible
|
|
|
|
}
|
2023-12-15 15:48:40 +00:00
|
|
|
}
|