blob: 55918fc96d8cf97d81f6ee5c0a1d7f3ed9d94be2 (
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
40
41
42
43
44
45
46
47
|
// 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, 40)
id: map
plugin: Plugin {
name: "osm"
}
zoomLevel: 1
copyrightsVisible: false
Repeater {
id: c
property var colors: [
"#30ff0000",
"#30ffa500",
"#30ffff00",
"#3000ff00",
"#300000ff",
"#30ee82ee"
]
property int count: 20
model: count
MapCircle
{
center
{
longitude: 20
latitude: -80
}
radius: ((c.count-index-1)/(c.count-1)*(6371-1000)+500)*Math.PI*1000
color: c.colors[Math.floor(index%c.colors.length)]
border.width: 1
autoFadeIn: false
opacity: 1
}
}
}
|