-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.0
-
None
-
24ecdc6c962ff40096782bffc24b7d6623c4a87e
In function setVisibleRegion(), the input parameter shape is tested against internal m_region, if they are the same the internal fitViewportToGeoShape() function is not evaluated because the map is apparently already at that location:
if (shape == m_region) return;
Internal m_region is however not updated when the center or zoom level of the map changes (using setCenter() and setZoomlevel()). So a second call to setVisibleRegion() with the same shape as input always results in not evaluating fitViewportToGeoShape() even if the map center or zoom level is changed.
| For Gerrit Dashboard: QTBUG-54141 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 163011,10 | Make setVisibleRegion compare to real visible region in Map Element | 5.6 | qt/qtlocation | Status: DEFERRED | 0 | 0 |
| 163394,4 | A fix for not working setVisibleRegion | 5.6 | qt/qtlocation | Status: MERGED | +2 | 0 |
| 163504,6 | Fix for failing QDeclarativeGeoMap::setVisibleRegion | dev | qt/qtlocation | Status: DEFERRED | 0 | 0 |