Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
qgs3dmapconfigwidget: Fix zoom level update on init
When the configuration widget is displayed, the zoom level is computed by calling `onTerrainLayerChanged` in the constructor. This function calls `updateMaxZoomLevel` which takes care of updating the max zoom level. This function relies on `groupExtent` to get the tile resolution. However, on startup, this resolution is always zero because `groupExtent` has not been initialized yet. This issue is fixed by calling `onTerrainLayerChanged` after `groupExtent` initialization.
- Loading branch information