diff options
author | Matthias Rauter <matthias.rauter@qt.io> | 2023-02-22 18:23:44 +0100 |
---|---|---|
committer | Matthias Rauter <matthias.rauter@qt.io> | 2023-04-11 07:59:01 +0100 |
commit | bd3ca9bd2158c2271cc76173fd747679d7fbd76c (patch) | |
tree | 9fee399b8d4d8ff084fc5e42d86086741b1087eb /tests/baseline/mapitems/data/polyline | |
parent | fbe6f3f4b9456467baa772c6efe40b80aefd1414 (diff) | |
download | qtlocation-bd3ca9bd2158c2271cc76173fd747679d7fbd76c.tar.gz |
Polygons/lines can now be rendered following the shortest path on the globe
This is enabled by interpolating the lines of polygons and paths.
The interpolating is done following the greater circle navigation and the
connection between corners of the polygon appear curved on the projected map.
This behavior can be turned on by setting a new property, called
referenceSurface. It can be set to ReferenceSurface.Map, drawing paths as lines on
the map or to ReferenceSurface.Globe, drawing path on the globe leading to
curves on the map. It is set to ReferenceSurface.Map on default, reproducing
the old implementation for polygons, polylines and rectangles.
The circle item was already using the great circle path before this
change. Its standard implementation was changed to draw a circle in map
coordinates with approximated radius. This should be sufficient for many
cases. To get the old implementation, referenceSurface has to be set to
ReferenceSurface.Map.
Fixes: QTBUG-94785
Change-Id: Ifdd1597a7116c3d220462f063656b04becb6422f
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/baseline/mapitems/data/polyline')
4 files changed, 4 insertions, 4 deletions
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 |