summaryrefslogtreecommitdiff
path: root/tests/baseline/mapitems/data/circle/circle_grid2.qml
blob: 14ab12ba60ee72a2af05b54ee693923950fc853b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

import QtQuick
import QtLocation
import QtPositioning

Map {
    width: 512
    height: 512

    center: QtPositioning.coordinate(0, 20)

    id: map
    plugin: Plugin {
        name: "osm"
    }
    zoomLevel: 1
    copyrightsVisible: false

    Repeater {
        id: c
        property int count: 4
        model: count*count
        MapCircle
        {
            center
            {
                longitude: -180+360*(index%c.count+0.5)/(c.count)
                latitude: -90+180*(Math.floor(index/c.count)+0.5)/(c.count)
            }
            radius: 4000*1000
            color: 'green'
            border.width: 1
            autoFadeIn: false
            opacity: 0.3
        }
    }
}