diff options
Diffstat (limited to 'tests/baseline/mapitems/data/polygon_greatCircle')
3 files changed, 181 insertions, 0 deletions
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 + } +} |