Bug report #10449

legend for raster layers expanded by default

Added by Nyall Dawson about 10 years ago. Updated about 10 years ago.

Status:Closed
Priority:Normal
Assignee:Martin Dobias
Category:Map Legend
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:18861

Description

Since the merge of the legend refactoring raster layers added to the map have their legend expanded by default. This is a change from 2.2, where they were not expanded initially. I personally think the previous behavior was preferred, as rasters with a large number of palettes colors end up taking up a huge amount of space in the legend.

Associated revisions

Revision eb6a45c4
Added by Martin Dobias about 10 years ago

[layertree] Fix #10449 (auto-collapse layer if symbology has >= 10 items)

History

#1 Updated by Martin Dobias about 10 years ago

Rather than having the collapsed layer nodes just for paletted raster layer, maybe it makes sense to have a threshold (number of symbology items - e.g. 25) when the node would be collapsed? So it would work also for vector layers if the number of categories / ranges / rules gets too high.

What do you think?

#2 Updated by Nyall Dawson about 10 years ago

Good idea. This also means rasters with a small number of graduated classes would get expanded, which is a nice touch. I'd suggest a smaller threshold though, maybe 10?

#3 Updated by Martin Dobias about 10 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF