Project: QGIS

Version: 2.6.0

Feature: Legend improvements

The second phase of the legend / table of contents overhaul has been completed. This includes:

  • API cleanup (for developers)
  • Scale-based filtering of legend nodes (in WMS)
  • Visibility groups of map layers in layer tree. This new toolbar button allows quick changes between the groups of layers that should be visible.
  • Ability to manage layer groups from the legend toolbar
  • The new legend filter option on the legend toolbar will remove legend items for any classes which are not currently in the view extent. This is an awesome improvement as it ensures that your map legend does not contain entries for items not currently in the map view. It is available in the main map legend and in map composer and for WMS layers.
  • Rule-based renderer legends can now be displayed in in a pseudo-tree

Developers should note that there are some minor API breakages relating to the new legend - we try our best to maintain backwards compatibility but in this case it was not possible and the changes were not substantive enough to warrant a 3.0 release. Please see this mailing list thread for more details.