Skip to content

Commit c336a4e

Browse files
authored
Add a section about the symbol's extent buffer (#9568)
2 parents b1267f9 + bb1d2be commit c336a4e

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Loading

docs/user_manual/working_with_vector/vector_properties.rst

+29
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,35 @@ the symbol's frame rate:
11451145
Setting the symbol's rotation to data defined expression
11461146

11471147

1148+
.. _extent_buffer:
1149+
1150+
Extent buffer
1151+
.............
1152+
You may set an extent buffer for a :ref:`symbol <edit_symbol>`. This means that a buffer is applied to
1153+
the current map extent so that if a feature is outside of the actual map extent
1154+
but inside the buffered extent it will still be rendered. This is useful for example
1155+
with symbols which use the geometry generator where you would like to still see the
1156+
generated geometries even if the actual feature is outside of the map extent.
1157+
1158+
To edit the extent buffer you can utilize the :guilabel:`Extent buffer` panel.
1159+
1160+
#. Start by going to the top symbol level and select :guilabel:`Advanced`
1161+
menu in the bottom right of the dialog
1162+
#. Find :guilabel:`Extent buffer` option
1163+
#. In the new panel you can set the buffer distance
1164+
1165+
The buffer distance units can be changed. You can also control the distance value
1166+
by using the data defined override widget. For example you can change the value
1167+
based on the current map scale ``if(@map_scale > 50000, 5000, 0)``:
1168+
1169+
.. only:: html
1170+
1171+
.. figure:: img/extent_buffer.gif
1172+
:align: center
1173+
:width: 50%
1174+
1175+
Example of the extent buffer with a symbol using a geometry generator symbol level.
1176+
11481177

11491178
.. index:: Paint effects
11501179
.. _draw_effects:

0 commit comments

Comments
 (0)