[Qgis-user] can't apply mask on labels
Andreas Neumann
andreas at qgis.org
Thu Mar 7 00:33:29 PST 2024
Hi all,
The mask is more flexible and cartographically more pleasing if you don't
have a white background on your map. Also, if your background varies
(multiple colors (e.g. lake, forest, agriculture), the mask is the only way
to get rid of darker colors while keeping light background colors.
See f.e. this example here:
[image: grafik.png]
Have a look at the large labels "Pfaffhausen" and "Fällanden". Darker
colors from roads (black) and rivers (blue) are masked, but lighter colors
from forests, lakes and hillshading are preserved. The mask is the only way
to achieve this "selective" effect of masking.
All other options like background rectangles or buffers have a fixed color
and only work on a homogeneous background. They wouldn't be able to achieve
the effect of the example above.
I hope this clarifies the difference in the approaches?
The only major problems with the masks are the following limitations
(hopefully they can be removed in the future):
- they cannot be used within the same layer (you need to duplicate layers
if you want to mask features with labels from the same layer)
- they don't yet work on vector tiles, because vector tiles aren't real
QGIS vector layers with all the symbology options. They only have a limited
set of symbology so far
Greetings,
Andreas
--
Andreas Neumann
QGIS.ORG board member (treasurer)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240307/8789f66d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grafik.png
Type: image/png
Size: 556026 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240307/8789f66d/attachment-0001.png>
More information about the QGIS-User
mailing list