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 }
Attachments
For Gerrit Dashboard: QTBUG-54337 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
163504,6 | Fix for failing QDeclarativeGeoMap::setVisibleRegion | dev | qt/qtlocation | Status: DEFERRED | 0 | 0 |
163530,8 | Fix the fitViewportToGeoShape calculation | 5.6 | qt/qtlocation | Status: MERGED | +2 | 0 |