diff options
Diffstat (limited to 'tests/baseline/mapitems/data')
31 files changed, 502 insertions, 27 deletions
diff --git a/tests/baseline/mapitems/data/circle/circle_concentric1.qml b/tests/baseline/mapitems/data/circle/circle_concentric1.qml index a4be266d..dc8bc6eb 100644 --- a/tests/baseline/mapitems/data/circle/circle_concentric1.qml +++ b/tests/baseline/mapitems/data/circle/circle_concentric1.qml @@ -13,7 +13,7 @@ Map { id: map plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false diff --git a/tests/baseline/mapitems/data/circle/circle_grid1.qml b/tests/baseline/mapitems/data/circle/circle_grid1.qml index 53ce8eb7..59fe47ac 100644 --- a/tests/baseline/mapitems/data/circle/circle_grid1.qml +++ b/tests/baseline/mapitems/data/circle/circle_grid1.qml @@ -13,7 +13,7 @@ Map { id: map plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false 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/circle_concentric2.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric2.qml index 45184c09..35272df4 100644 --- a/tests/baseline/mapitems/data/circle/circle_concentric2.qml +++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric2.qml @@ -13,7 +13,7 @@ Map { id: map plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false @@ -41,6 +41,7 @@ Map { 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/circle_concentric3.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric3.qml index 55918fc9..677aeebe 100644 --- a/tests/baseline/mapitems/data/circle/circle_concentric3.qml +++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric3.qml @@ -13,7 +13,7 @@ Map { id: map plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false @@ -41,6 +41,7 @@ Map { 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/circle_concentric4.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric4.qml index 2232b88f..d856414e 100644 --- a/tests/baseline/mapitems/data/circle/circle_concentric4.qml +++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_concentric4.qml @@ -13,7 +13,7 @@ Map { id: map plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false @@ -41,6 +41,7 @@ Map { 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/circle_grid2.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_grid2.qml index 14ab12ba..c00dd3a9 100644 --- a/tests/baseline/mapitems/data/circle/circle_grid2.qml +++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_grid2.qml @@ -13,7 +13,7 @@ Map { id: map plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false @@ -33,6 +33,7 @@ Map { color: 'green' border.width: 1 autoFadeIn: false + referenceSurface: QtLocation.ReferenceSurface.Globe opacity: 0.3 } } diff --git a/tests/baseline/mapitems/data/circle/circle_grid3.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_grid3.qml index fa36657e..b0dec740 100644 --- a/tests/baseline/mapitems/data/circle/circle_grid3.qml +++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_grid3.qml @@ -13,7 +13,7 @@ Map { id: map plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false @@ -33,6 +33,7 @@ Map { color: 'green' border.width: 1 autoFadeIn: false + referenceSurface: QtLocation.ReferenceSurface.Globe opacity: 0.3 } } diff --git a/tests/baseline/mapitems/data/circle/circle_poles.qml b/tests/baseline/mapitems/data/circle_greatCircle/circle_poles.qml index 0aece161..47d11b44 100644 --- a/tests/baseline/mapitems/data/circle/circle_poles.qml +++ b/tests/baseline/mapitems/data/circle_greatCircle/circle_poles.qml @@ -13,7 +13,7 @@ Map { id: map plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false @@ -29,6 +29,7 @@ Map { smooth: true border.width: 1 autoFadeIn: false + referenceSurface: QtLocation.ReferenceSurface.Globe opacity: 0.5 } MapCircle @@ -43,6 +44,7 @@ Map { smooth: true border.width: 1 autoFadeIn: false + referenceSurface: QtLocation.ReferenceSurface.Globe opacity: 0.5 } } diff --git a/tests/baseline/mapitems/data/polygon/polygon_africa1_tilt.qml b/tests/baseline/mapitems/data/polygon/polygon_africa1_tilt.qml index 5bddfd36..454bb62e 100644 --- a/tests/baseline/mapitems/data/polygon/polygon_africa1_tilt.qml +++ b/tests/baseline/mapitems/data/polygon/polygon_africa1_tilt.qml @@ -12,7 +12,7 @@ Map { height: 512 center: QtPositioning.coordinate(20, 30) - tilt: 30 + tilt: 30 plugin: Plugin { diff --git a/tests/baseline/mapitems/data/polygon/polygon_africa1_tilt_bear.qml b/tests/baseline/mapitems/data/polygon/polygon_africa1_tilt_bear.qml index e8d035bd..84d73778 100644 --- a/tests/baseline/mapitems/data/polygon/polygon_africa1_tilt_bear.qml +++ b/tests/baseline/mapitems/data/polygon/polygon_africa1_tilt_bear.qml @@ -12,8 +12,8 @@ Map { height: 512 center: QtPositioning.coordinate(20, 30) - tilt: 30 - bearing: 34 + tilt: 30 + bearing: 34 plugin: Plugin { diff --git a/tests/baseline/mapitems/data/polygon/polygon_hole.qml b/tests/baseline/mapitems/data/polygon/polygon_hole.qml index 0dfee0eb..8fde4edc 100644 --- a/tests/baseline/mapitems/data/polygon/polygon_hole.qml +++ b/tests/baseline/mapitems/data/polygon/polygon_hole.qml @@ -12,7 +12,7 @@ Map { center: QtPositioning.coordinate(52, 22) plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 4 copyrightsVisible: false diff --git a/tests/baseline/mapitems/data/polygon/polygon_hole_bear.qml b/tests/baseline/mapitems/data/polygon/polygon_hole_bear.qml index 7053f065..b3811034 100644 --- a/tests/baseline/mapitems/data/polygon/polygon_hole_bear.qml +++ b/tests/baseline/mapitems/data/polygon/polygon_hole_bear.qml @@ -10,10 +10,10 @@ Map { height: 512 center: QtPositioning.coordinate(52, 22) - bearing: 54 - + bearing: 54 + plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 4 copyrightsVisible: false diff --git a/tests/baseline/mapitems/data/polygon/polygon_hole_tilt.qml b/tests/baseline/mapitems/data/polygon/polygon_hole_tilt.qml index dfcc7433..ec3a64ed 100644 --- a/tests/baseline/mapitems/data/polygon/polygon_hole_tilt.qml +++ b/tests/baseline/mapitems/data/polygon/polygon_hole_tilt.qml @@ -10,10 +10,10 @@ Map { height: 512 center: QtPositioning.coordinate(52, 22) - tilt: 60 - + tilt: 60 + plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 4 copyrightsVisible: false diff --git a/tests/baseline/mapitems/data/polygon_greatCircle/polygon_hole.qml b/tests/baseline/mapitems/data/polygon_greatCircle/polygon_hole.qml new file mode 100644 index 00000000..d06fa4b7 --- /dev/null +++ b/tests/baseline/mapitems/data/polygon_greatCircle/polygon_hole.qml @@ -0,0 +1,54 @@ +// 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(52, 22) + + plugin: Plugin { + name: "itemsoverlay" + } + zoomLevel: 4 + copyrightsVisible: false + + MapPolygon { + color: "green" + autoFadeIn: false + referenceSurface: QtLocation.ReferenceSurface.Globe + geoShape: QtPositioning.polygon( + [ + QtPositioning.coordinate(51.11, 17.13), + QtPositioning.coordinate(50.42, 30.54), + QtPositioning.coordinate(58.36, 26.70) + ], + [ + [ + QtPositioning.coordinate(54.36, 23.46), + QtPositioning.coordinate(51.91, 20.52), + QtPositioning.coordinate(51.50, 28.25), + QtPositioning.coordinate(54.36, 26.80) + ] + ] + ) + } + + MapPolygon { + color: "blue" + autoFadeIn: false + referenceSurface: QtLocation.ReferenceSurface.Globe + geoShape: QtPositioning.polygon( + [ + QtPositioning.coordinate(54.36, 33.46), + QtPositioning.coordinate(51.91, 30.52), + QtPositioning.coordinate(51.50, 38.25), + QtPositioning.coordinate(54.36, 36.80) + ] + ) + } +} diff --git a/tests/baseline/mapitems/data/polygon_greatCircle/polygon_poles.qml b/tests/baseline/mapitems/data/polygon_greatCircle/polygon_poles.qml new file mode 100644 index 00000000..901ffd7a --- /dev/null +++ b/tests/baseline/mapitems/data/polygon_greatCircle/polygon_poles.qml @@ -0,0 +1,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 + } +} diff --git a/tests/baseline/mapitems/data/polygon_greatCircle/polygon_poles2.qml b/tests/baseline/mapitems/data/polygon_greatCircle/polygon_poles2.qml new file mode 100644 index 00000000..02075fb2 --- /dev/null +++ b/tests/baseline/mapitems/data/polygon_greatCircle/polygon_poles2.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 + + MapPolygon { + color: 'red' + autoFadeIn: false + referenceSurface: QtLocation.ReferenceSurface.Globe + geoShape: QtPositioning.polygon( + [ + QtPositioning.coordinate(-30, 61), + QtPositioning.coordinate(0, -179), + QtPositioning.coordinate(30, -59) + ] + ) + opacity: 0.5 + } + + MapPolygon { + color: 'green' + autoFadeIn: false + referenceSurface: QtLocation.ReferenceSurface.Globe + geoShape: QtPositioning.polygon( + [ + QtPositioning.coordinate(30, 61), + QtPositioning.coordinate(0, -179), + QtPositioning.coordinate(-30, -59) + ] + ) + opacity: 0.5 + } +} diff --git a/tests/baseline/mapitems/data/polyline/polyline_dateborder.qml b/tests/baseline/mapitems/data/polyline/polyline_dateborder.qml index cf74ba9c..ff351b17 100644 --- a/tests/baseline/mapitems/data/polyline/polyline_dateborder.qml +++ b/tests/baseline/mapitems/data/polyline/polyline_dateborder.qml @@ -12,7 +12,7 @@ Map { center: QtPositioning.coordinate(0, 0) plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false diff --git a/tests/baseline/mapitems/data/polyline/polyline_dateborder2.qml b/tests/baseline/mapitems/data/polyline/polyline_dateborder2.qml index 203281af..52041a03 100644 --- a/tests/baseline/mapitems/data/polyline/polyline_dateborder2.qml +++ b/tests/baseline/mapitems/data/polyline/polyline_dateborder2.qml @@ -12,7 +12,7 @@ Map { center: QtPositioning.coordinate(0, 0) plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false diff --git a/tests/baseline/mapitems/data/polyline/polyline_local.qml b/tests/baseline/mapitems/data/polyline/polyline_local.qml index cfd0f959..54e5c9fb 100644 --- a/tests/baseline/mapitems/data/polyline/polyline_local.qml +++ b/tests/baseline/mapitems/data/polyline/polyline_local.qml @@ -12,7 +12,7 @@ Map { center: QtPositioning.coordinate(52, 22) plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 4 copyrightsVisible: false diff --git a/tests/baseline/mapitems/data/polyline/polyline_poles.qml b/tests/baseline/mapitems/data/polyline/polyline_poles.qml index 7abd7060..7b99757c 100644 --- a/tests/baseline/mapitems/data/polyline/polyline_poles.qml +++ b/tests/baseline/mapitems/data/polyline/polyline_poles.qml @@ -12,7 +12,7 @@ Map { center: QtPositioning.coordinate(0, 0) plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false diff --git a/tests/baseline/mapitems/data/polyline_greatCircle/polyline_dateborder.qml b/tests/baseline/mapitems/data/polyline_greatCircle/polyline_dateborder.qml new file mode 100644 index 00000000..dfaf4d12 --- /dev/null +++ b/tests/baseline/mapitems/data/polyline_greatCircle/polyline_dateborder.qml @@ -0,0 +1,54 @@ +// 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, 0) + + plugin: Plugin { + name: "itemsoverlay" + } + zoomLevel: 1 + copyrightsVisible: false + + MapPolyline { + autoFadeIn: false + referenceSurface: QtLocation.ReferenceSurface.Globe + line.color: "green" + line.width: 5 + path: [ + QtPositioning.coordinate(30, 1), + QtPositioning.coordinate(30, 121), + QtPositioning.coordinate(30, -119), + ] + } + + MapPolyline { + autoFadeIn: false + referenceSurface: QtLocation.ReferenceSurface.Globe + line.color: "green" + line.width: 5 + path: [ + QtPositioning.coordinate(-30, 1), + QtPositioning.coordinate(-30, 121), + QtPositioning.coordinate(-30, -119), + ] + } + + MapPolyline { + autoFadeIn: false + referenceSurface: QtLocation.ReferenceSurface.Globe + line.color: "green" + line.width: 5 + path: [ + QtPositioning.coordinate(-30, 60), + QtPositioning.coordinate(-30, -120), + ] + } +} diff --git a/tests/baseline/mapitems/data/polyline_greatCircle/polyline_dateborder2.qml b/tests/baseline/mapitems/data/polyline_greatCircle/polyline_dateborder2.qml new file mode 100644 index 00000000..a87fe283 --- /dev/null +++ b/tests/baseline/mapitems/data/polyline_greatCircle/polyline_dateborder2.qml @@ -0,0 +1,41 @@ +// 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, 0) + + plugin: Plugin { + name: "itemsoverlay" + } + zoomLevel: 1 + copyrightsVisible: false + + MapPolyline { + autoFadeIn: false + referenceSurface: QtLocation.ReferenceSurface.Globe + line.color: "blue" + line.width: 2 + path: [ + QtPositioning.coordinate(60, 100), + QtPositioning.coordinate(55, -100), + QtPositioning.coordinate(50, 0), + QtPositioning.coordinate(45, 100), + QtPositioning.coordinate(40, 0), + QtPositioning.coordinate(35, -100), + QtPositioning.coordinate(30, 100), + QtPositioning.coordinate(25, -100), + QtPositioning.coordinate(20, 0), + QtPositioning.coordinate(15, 100), + QtPositioning.coordinate(10, 0), + QtPositioning.coordinate( 5, -100) + ] + } + +} diff --git a/tests/baseline/mapitems/data/rectangle/rectangle_concentric1.qml b/tests/baseline/mapitems/data/rectangle/rectangle_concentric1.qml index 375337e1..9141f256 100644 --- a/tests/baseline/mapitems/data/rectangle/rectangle_concentric1.qml +++ b/tests/baseline/mapitems/data/rectangle/rectangle_concentric1.qml @@ -13,7 +13,7 @@ Map { id: map plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false diff --git a/tests/baseline/mapitems/data/rectangle/rectangle_concentric2.qml b/tests/baseline/mapitems/data/rectangle/rectangle_concentric2.qml index 7e1b5b37..9c1905aa 100644 --- a/tests/baseline/mapitems/data/rectangle/rectangle_concentric2.qml +++ b/tests/baseline/mapitems/data/rectangle/rectangle_concentric2.qml @@ -13,7 +13,7 @@ Map { id: map plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false diff --git a/tests/baseline/mapitems/data/rectangle/rectangle_concentric3.qml b/tests/baseline/mapitems/data/rectangle/rectangle_concentric3.qml index 39582127..42bb0e1b 100644 --- a/tests/baseline/mapitems/data/rectangle/rectangle_concentric3.qml +++ b/tests/baseline/mapitems/data/rectangle/rectangle_concentric3.qml @@ -13,7 +13,7 @@ Map { id: map plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false diff --git a/tests/baseline/mapitems/data/rectangle/rectangle_grid1.qml b/tests/baseline/mapitems/data/rectangle/rectangle_grid1.qml index 1a74c003..49a9004a 100644 --- a/tests/baseline/mapitems/data/rectangle/rectangle_grid1.qml +++ b/tests/baseline/mapitems/data/rectangle/rectangle_grid1.qml @@ -13,7 +13,7 @@ Map { id: map plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false diff --git a/tests/baseline/mapitems/data/rectangle/rectangle_grid2.qml b/tests/baseline/mapitems/data/rectangle/rectangle_grid2.qml index 29f0f8a0..0fdc66fe 100644 --- a/tests/baseline/mapitems/data/rectangle/rectangle_grid2.qml +++ b/tests/baseline/mapitems/data/rectangle/rectangle_grid2.qml @@ -13,7 +13,7 @@ Map { id: map plugin: Plugin { - name: "osm" + name: "itemsoverlay" } zoomLevel: 1 copyrightsVisible: false diff --git a/tests/baseline/mapitems/data/rectangle_greatCircle/rectangle_grid1.qml b/tests/baseline/mapitems/data/rectangle_greatCircle/rectangle_grid1.qml new file mode 100644 index 00000000..7053234d --- /dev/null +++ b/tests/baseline/mapitems/data/rectangle_greatCircle/rectangle_grid1.qml @@ -0,0 +1,54 @@ +// 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, 30) + + id: map + plugin: Plugin { + name: "itemsoverlay" + } + zoomLevel: 1 + copyrightsVisible: false + + Repeater { + id: c + property var colors: [ + "red", + "orange", + "yellow", + "green", + "blue", + "violet" + ] + property double rWidth: 55 + property double rHeight: 55 + property int count: c.colors.length + model: count*count + MapRectangle + { + topLeft + { + longitude: Math.min(180, Math.max(-180, -180+360*(index%c.count+0.5)/(c.count) - c.rWidth/2)) + latitude: Math.min(90, Math.max(-90, -90+180*(Math.floor(index/c.count)+0.5)/(c.count) - c.rHeight/2)) + } + bottomRight + { + longitude: Math.min(180, Math.max(-180, -180+360*(index%c.count+0.5)/(c.count) + c.rWidth/2)) + latitude: Math.min(90, Math.max(-90, -90+180*(Math.floor(index/c.count)+0.5)/(c.count) + c.rHeight/2)) + } + color: c.colors[Math.floor(index%c.colors.length)] + border.width: 1 + autoFadeIn: false + referenceSurface: QtLocation.ReferenceSurface.Globe + opacity: 0.3 + } + } +} |