diff options
Diffstat (limited to 'tests/baseline/mapitems/data/circle')
8 files changed, 361 insertions, 0 deletions
diff --git a/tests/baseline/mapitems/data/circle/circle_concentric1.qml b/tests/baseline/mapitems/data/circle/circle_concentric1.qml new file mode 100644 index 00000000..a4be266d --- /dev/null +++ b/tests/baseline/mapitems/data/circle/circle_concentric1.qml @@ -0,0 +1,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, 20) + + 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: 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 + opacity: 1 + } + } +} diff --git a/tests/baseline/mapitems/data/circle/circle_concentric2.qml b/tests/baseline/mapitems/data/circle/circle_concentric2.qml new file mode 100644 index 00000000..45184c09 --- /dev/null +++ b/tests/baseline/mapitems/data/circle/circle_concentric2.qml @@ -0,0 +1,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, -20) + + 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 + } + } +} diff --git a/tests/baseline/mapitems/data/circle/circle_concentric3.qml b/tests/baseline/mapitems/data/circle/circle_concentric3.qml new file mode 100644 index 00000000..55918fc9 --- /dev/null +++ b/tests/baseline/mapitems/data/circle/circle_concentric3.qml @@ -0,0 +1,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 + } + } +} diff --git a/tests/baseline/mapitems/data/circle/circle_concentric4.qml b/tests/baseline/mapitems/data/circle/circle_concentric4.qml new file mode 100644 index 00000000..2232b88f --- /dev/null +++ b/tests/baseline/mapitems/data/circle/circle_concentric4.qml @@ -0,0 +1,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, -110) + + 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: 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 + opacity: 1 + } + } +} diff --git a/tests/baseline/mapitems/data/circle/circle_grid1.qml b/tests/baseline/mapitems/data/circle/circle_grid1.qml new file mode 100644 index 00000000..53ce8eb7 --- /dev/null +++ b/tests/baseline/mapitems/data/circle/circle_grid1.qml @@ -0,0 +1,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, 20) + + id: map + plugin: Plugin { + name: "osm" + } + 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 + opacity: 0.3 + } + } +} diff --git a/tests/baseline/mapitems/data/circle/circle_grid2.qml b/tests/baseline/mapitems/data/circle/circle_grid2.qml new file mode 100644 index 00000000..14ab12ba --- /dev/null +++ b/tests/baseline/mapitems/data/circle/circle_grid2.qml @@ -0,0 +1,39 @@ +// 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: "osm" + } + 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 + opacity: 0.3 + } + } +} diff --git a/tests/baseline/mapitems/data/circle/circle_grid3.qml b/tests/baseline/mapitems/data/circle/circle_grid3.qml new file mode 100644 index 00000000..fa36657e --- /dev/null +++ b/tests/baseline/mapitems/data/circle/circle_grid3.qml @@ -0,0 +1,39 @@ +// 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: "osm" + } + 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 + opacity: 0.3 + } + } +} diff --git a/tests/baseline/mapitems/data/circle/circle_poles.qml b/tests/baseline/mapitems/data/circle/circle_poles.qml new file mode 100644 index 00000000..0aece161 --- /dev/null +++ b/tests/baseline/mapitems/data/circle/circle_poles.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: "osm" + } + 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 + 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 + opacity: 0.5 + } +} |