summaryrefslogtreecommitdiff
path: root/tests/baseline/mapitems/data/circle_greatCircle/circle_comparison.qml
blob: 5294d3d7eb91cd3221ec4da892a27820c5e29955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
    }
}