Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.0, 5.6.1, 5.7.0
-
None
-
fde1e3a6c031ffaf511a5a1878d77676af93482c
Description
QDeclarativeGeoMap::fitViewportToGeoShape currently calculates the extent of a QGeoCircle bounding box using the center and the position "centerCoordinate.atDistanceAndAzimuth(circle.radius(), 90);"
This is correct only for circles centered at the equator.
Example of failing geometries:
MapRectangle { color: 'blue' opacity: 0.4 topLeft: QtPositioning.coordinate(84,-22) bottomRight: QtPositioning.coordinate(72,-18) } MapCircle { color: 'red' opacity: 0.4 center: QtPositioning.coordinate(70,70) radius: 1800000 }