Commit 6bc54fc4 authored by Paolo Angelelli's avatar Paolo Angelelli
Browse files

Fix for camera data not updated in changeActiveMapType


This patch forces a camera data update upon changeActiveMapType, which
may change the tile size.

Change-Id: Ib371ea7f76267bc4ed8a30eed31ec3887b4a1415
Reviewed-by: default avatarAlex Blasche <alexander.blasche@qt.io>
Showing with 2 additions and 1 deletion
...@@ -340,7 +340,8 @@ void QGeoTiledMapPrivate::changeActiveMapType(const QGeoMapType mapType) ...@@ -340,7 +340,8 @@ void QGeoTiledMapPrivate::changeActiveMapType(const QGeoMapType mapType)
m_mapScene->setTileSize(m_cameraCapabilities.tileSize()); m_mapScene->setTileSize(m_cameraCapabilities.tileSize());
m_visibleTiles->setMapType(mapType); m_visibleTiles->setMapType(mapType);
m_prefetchTiles->setMapType(mapType); m_prefetchTiles->setMapType(mapType);
updateScene(); changeCameraData(m_cameraData); // Updates the zoom level to the possibly new tile size
// updateScene called in changeCameraData()
} }
void QGeoTiledMapPrivate::changeTileVersion(int version) void QGeoTiledMapPrivate::changeTileVersion(int version)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment