mirror of https://github.com/qt/qtdoc.git
35 lines
873 B
QML
35 lines
873 B
QML
|
// Copyright (C) 2023 The Qt Company Ltd.
|
||
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||
|
|
||
|
import QtQuick
|
||
|
import QtQuick.Controls
|
||
|
|
||
|
ApplicationWindow {
|
||
|
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();
|
||
|
}
|
||
|
|
||
|
Component.onCompleted: {
|
||
|
if ((width < 200) || (height < 200)) {
|
||
|
width = LightningViewConfig.appWidth
|
||
|
height = LightningViewConfig.appHeight
|
||
|
}
|
||
|
}
|
||
|
}
|