@@ -107,6 +107,8 @@ panel provides the following functionalities:
107107 THEN 60
108108 END
109109
110+ .. _legend_items :
111+
110112Legend items
111113------------
112114
@@ -117,24 +119,43 @@ panel provides the following functionalities (see :numref:`figure_layout_legend_
117119
118120.. figure :: img/legend_items.png
119121 :align: center
122+ :width: 50%
120123
121124 Legend Items group
122125
123- * The legend will be updated automatically if |checkbox | :guilabel: `Auto update ` is checked:
124- all spatial and visible layers are referenced in the legend,
125- unless the |checkbox | :guilabel: `Include automatically in print layout legend items `
126- in the layer properties legend tab is unchecked.
127- When :guilabel: `Auto update ` is unchecked this will give you more control over the legend items.
128- All the icons below the legend items list will be activated,
129- allowing you for example to add layers that are not visible in the associated map item(s),
130- or layers that you excluded from the automatic legend update.
126+ * The layers listed in the legend can be updated by selecting one of
127+ the following synchronization modes:
128+
129+ * :guilabel: `Synchronize to All Project Layers `: displays all layers
130+ from the layers panel, including non-spatial and unchecked layers.
131+ * :guilabel: `Synchronize to Visible Layers `: displays only spatial layers that
132+ are checked in the layers panel, regardless of whether
133+ they are visible within the linked map's extent.
134+
135+ .. note ::
136+ In both synchronization modes,
137+ any changes made to legend-related settings in the layers
138+ panel will automatically be propagated to the layout legend.
139+ Layers with |checkbox | :guilabel: `Include automatically in print layout legend items `
140+ unchecked in their layer's legend properties
141+ will be excluded from the legend.
142+
143+ * :guilabel: `Manual `: allows you to manually control
144+ which layers are shown in the legend. Use the :guilabel: `Reset `
145+ button to discard custom changes and repopulate the legend from:
146+
147+ * :guilabel: `Reset to All Project Layers `: repopulates the legend
148+ with all layers from the project.
149+ * :guilabel: `Reset to Visible Layers `: repopulates the legend
150+ with only the currently visible layers.
151+
131152* The legend items window lists all legend items and allows you to change item
132153 order, group layers, remove and restore items in the list, edit layer names
133- and symbology and add a filter.
154+ and symbology and add a filter. These buttons will work only if you
155+ enable :guilabel: `Manual ` legend mode.
134156
135157 * Use the |expandTree | :sup: `Expand all` and |collapseTree | :sup: `Collapse all` buttons
136- to respectively expand or collapse all the groups and subgroups in the legend tree.
137- Ensure that the :guilabel: `Auto update ` is unchecked to use these buttons.
158+ to respectively expand or collapse all the groups and subgroups in the legend tree.
138159 * The item order can be changed using the |arrowUp | and |arrowDown | buttons or
139160 with 'drag-and-drop' functionality. The order can not be changed for WMS
140161 legend graphics.
@@ -161,15 +182,11 @@ panel provides the following functionalities (see :numref:`figure_layout_legend_
161182 you can revert them by choosing :guilabel: `Reset to defaults ` from the
162183 contextual menu of the legend entry.
163184
164- After changing the symbology in the QGIS main window, you can click on
165- :guilabel: `Update All ` to adapt the changes in the legend element of the print
166- layout.
167-
168185* With the |checkbox | :guilabel: `Only show items inside linked maps `, only the
169186 legend items visible in the linked map will be listed in the legend. If you
170187 have more than one map you can click on :guilabel: `... ` and select other
171188 maps from your layout.
172- This tool remains available when | checkbox | :guilabel: ` Auto-update ` is active .
189+ This tool remains available in any legend mode .
173190* While generating an atlas with polygon features, you can filter out legend
174191 items that lie outside the current atlas feature. To do that, check the
175192 |checkbox | :guilabel: `Only show items inside current atlas feature ` option.
0 commit comments