summaryrefslogtreecommitdiff
path: root/tests/baseline/mapitems/data/circle_greatCircle
diff options
context:
space:
mode:
Diffstat (limited to 'tests/baseline/mapitems/data/circle_greatCircle')
-rw-r--r--tests/baseline/mapitems/data/circle_greatCircle/circle_comparison.qml42
-rw-r--r--tests/baseline/mapitems/data/circle_greatCircle/circle_concentric1.qml48
-rw-r--r--tests/baseline/mapitems/data/circle_greatCircle/circle_concentric2.qml48
-rw-r--r--tests/baseline/mapitems/data/circle_greatCircle/circle_concentric3.qml48
-rw-r--r--tests/baseline/mapitems/data/circle_greatCircle/circle_concentric4.qml48
-rw-r--r--tests/baseline/mapitems/data/circle_greatCircle/circle_grid1.qml48
-rw-r--r--tests/baseline/mapitems/data/circle_greatCircle/circle_grid2.qml40
-rw-r--r--tests/baseline/mapitems/data/circle_greatCircle/circle_grid3.qml40
-rw-r--r--tests/baseline/mapitems/data/circle_greatCircle/circle_poles.qml50
9 files changed, 412 insertions, 0 deletions
diff --git a/tests/baseline/mapitems/data/circle_greatCircle/circle_comparison.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_comparison.qml
new file mode 100644
index 00000000..5294d3d7
--- /dev/null
+++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_comparison.qml
@@ -0,0 +1,42 @@
+// 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(80, -140)
+
+ id: map
+ plugin: Plugin {
+ name: "osm"
+ }
+ zoomLevel: 2
+ copyrightsVisible: false
+
+ MapCircle
+ {
+ center: map.center
+ radius: 3000000
+ color: "red"
+ border.width: 1
+ autoFadeIn: false
+ opacity: 0.5
+ referenceSurface: QtLocation.ReferenceSurface.Map
+ }
+
+ MapCircle
+ {
+ center: map.center
+ radius: 3000000
+ color: "blue"
+ border.width: 1
+ autoFadeIn: false
+ opacity: 0.5
+ referenceSurface: QtLocation.ReferenceSurface.Globe
+ }
+}
diff --git a/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric1.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric1.qml
new file mode 100644
index 00000000..96606a6a
--- /dev/null
+++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric1.qml
@@ -0,0 +1,48 @@
+// 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
+
+ Repeater {
+ id: c
+ property var colors: [
+ "#30ff0000",
+ "#30ffa500",
+ "#30ffff00",
+ "#3000ff00",
+ "#300000ff",
+ "#30ee82ee"
+ ]
+ property int count: 20
+ model: count
+ MapCircle
+ {
+ center
+ {
+ longitude: 20
+ latitude: 0
+ }
+ 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
+ referenceSurface: QtLocation.ReferenceSurface.Globe
+ opacity: 1
+ }
+ }
+}
diff --git a/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric2.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric2.qml
new file mode 100644
index 00000000..35272df4
--- /dev/null
+++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric2.qml
@@ -0,0 +1,48 @@
+// 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
+
+ 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
+ referenceSurface: QtLocation.ReferenceSurface.Globe
+ opacity: 1
+ }
+ }
+}
diff --git a/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric3.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric3.qml
new file mode 100644
index 00000000..677aeebe
--- /dev/null
+++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric3.qml
@@ -0,0 +1,48 @@
+// 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: "itemsoverlay"
+ }
+ 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
+ referenceSurface: QtLocation.ReferenceSurface.Globe
+ opacity: 1
+ }
+ }
+}
diff --git a/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric4.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric4.qml
new file mode 100644
index 00000000..d856414e
--- /dev/null
+++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric4.qml
@@ -0,0 +1,48 @@
+// 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, -110)
+
+ id: map
+ plugin: Plugin {
+ name: "itemsoverlay"
+ }
+ 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: 170
+ latitude: 30
+ }
+ 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
+ referenceSurface: QtLocation.ReferenceSurface.Globe
+ opacity: 1
+ }
+ }
+}
diff --git a/tests/baseline/mapitems/data/circle_greatCircle/circle_grid1.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_grid1.qml
new file mode 100644
index 00000000..be44f08d
--- /dev/null
+++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_grid1.qml
@@ -0,0 +1,48 @@
+// 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
+
+ Repeater {
+ id: c
+ property var colors: [
+ "red",
+ "orange",
+ "yellow",
+ "green",
+ "blue",
+ "violet"
+ ]
+ property int count: c.colors.length
+ 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: 2000*1000
+ color: c.colors[Math.floor(index%c.colors.length)]
+ border.width: 1
+ autoFadeIn: false
+ referenceSurface: QtLocation.ReferenceSurface.Globe
+ opacity: 0.3
+ }
+ }
+}
diff --git a/tests/baseline/mapitems/data/circle_greatCircle/circle_grid2.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_grid2.qml
new file mode 100644
index 00000000..c00dd3a9
--- /dev/null
+++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_grid2.qml
@@ -0,0 +1,40 @@
+// 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
+
+ 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
+ referenceSurface: QtLocation.ReferenceSurface.Globe
+ opacity: 0.3
+ }
+ }
+}
diff --git a/tests/baseline/mapitems/data/circle_greatCircle/circle_grid3.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_grid3.qml
new file mode 100644
index 00000000..b0dec740
--- /dev/null
+++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_grid3.qml
@@ -0,0 +1,40 @@
+// 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
+
+ Repeater {
+ id: c
+ property int count: 2
+ 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: 8000*1000
+ color: 'green'
+ border.width: 1
+ autoFadeIn: false
+ referenceSurface: QtLocation.ReferenceSurface.Globe
+ opacity: 0.3
+ }
+ }
+}
diff --git a/tests/baseline/mapitems/data/circle_greatCircle/circle_poles.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_poles.qml
new file mode 100644
index 00000000..47d11b44
--- /dev/null
+++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_poles.qml
@@ -0,0 +1,50 @@
+// 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.5
+ }
+ 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.5
+ }
+}