C
Qt Quick Ultralite map example
// Copyright (C) 2025 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial import QtQuick import QtPositioning Item { id: root property real zoomLevel: 3 property real offset: 0 property real bearing: 0 readonly property real autoMoveLatRange: 20 readonly property real autoMoveLngRange: 40 readonly property geoCoordinate startPosition: QtPositioning.coordinate(65.044334 - offset * autoMoveLatRange, 25.692558 - offset * autoMoveLngRange) property bool showButtons: false SequentialAnimation { loops: Animation.Infinite running: true PropertyAnimation { target: root property: "zoomLevel" to: 2 duration: 2000 } PropertyAnimation { target: root property: "zoomLevel" to: 3 duration: 2000 } PropertyAnimation { target: root property: "offset" to: 1 duration: 2000 } PropertyAnimation { target: root property: "offset" to: 0 duration: 2000 } PropertyAnimation { target: root property: "bearing" from: 0 to: 80 duration: 2000 } PropertyAnimation { target: root property: "bearing" from: 80 to: 0 duration: 2000 } } }