C

Qt Quick Ultralite map example

// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial
import QtQuick

Item {
    id: root

    property real zoomLevel: 3

    property real offset: 0
    property real bearing: 0

    property real latitude: 65.044334 - offset * 20
    property real longitude: 25.692558 - offset * 40

    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
        }
    }
}