diff options
author | Matthias Rauter <matthias.rauter@qt.io> | 2023-02-02 11:46:59 +0100 |
---|---|---|
committer | Matthias Rauter <matthias.rauter@qt.io> | 2023-02-15 07:44:48 +0100 |
commit | 51a895b3d280ce5103785e016e82b77676c26c5f (patch) | |
tree | 5f999fca5a17465b0f61df94d2a535929199a098 /tests/baseline/mapitems/data/circle/circle_grid2.qml | |
parent | 854758eaa75fa2b1caf443b9e89c85e362555a06 (diff) | |
download | qtlocation-51a895b3d280ce5103785e016e82b77676c26c5f.tar.gz |
Add baseline tests to qtlocation
Testing rendering of QDeclarativeMapItems.
Pick-to: 6.5
Change-Id: I9767314945a022006fdf02341744018c04206099
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/baseline/mapitems/data/circle/circle_grid2.qml')
-rw-r--r-- | tests/baseline/mapitems/data/circle/circle_grid2.qml | 39 |
1 files changed, 39 insertions, 0 deletions
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 + } + } +} |