blob: 901ffd7a2a9d97d1e9c929c4f5d3713cfcf2455c (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
// 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: "itemsoverlay"
}
zoomLevel: 1
copyrightsVisible: false
MapCircle
{
center
{
longitude: 0
latitude: -90
}
radius: 0.25*Math.PI*6371*1000
color: 'red'
smooth: true
border.width: 1
autoFadeIn: false
referenceSurface: QtLocation.ReferenceSurface.Globe
opacity: 0.3
}
MapCircle
{
center
{
longitude: 0
latitude: 90
}
radius: 0.25*Math.PI*6371*1000
color: 'green'
smooth: true
border.width: 1
autoFadeIn: false
referenceSurface: QtLocation.ReferenceSurface.Globe
opacity: 0.3
}
MapPolygon {
color: 'red'
autoFadeIn: false
referenceSurface: QtLocation.ReferenceSurface.Globe
geoShape: QtPositioning.polygon(
[
QtPositioning.coordinate(-30, 61),
QtPositioning.coordinate(-30, -179),
QtPositioning.coordinate(-30, -59)
]
)
opacity: 0.5
}
MapPolygon {
color: 'green'
autoFadeIn: false
referenceSurface: QtLocation.ReferenceSurface.Globe
geoShape: QtPositioning.polygon(
[
QtPositioning.coordinate(30, 1),
QtPositioning.coordinate(30, 121),
QtPositioning.coordinate(30, -119)
]
)
opacity: 0.5
}
}
|