2

When I apply a buffer or rectangle to my labels they show through the overlying layers. Is there any way to avoid this, i.e. arrange the label so it lies underneath the layers above? I'm assuming the labels themselves take priority and lie on top of any layers above (I've tried playing with the various priority settings). The yellow layer below has some transparency. I want to include a space around the label so it blocks the underlying contour line, but I don't want the buffer or rectangle showing through the yellow layer.

enter image description here

  • I don't believe there's a way to do this in QGIS since it places labels above all other layers. The solution I came up with when faced with a similar problem is to (under Labels→Buffer) set Size to 1.0mm, Color to white, Transparency to 25%, and Blend mode to Hard light. You can see some examples of this at alexkent.info/boreas/maps Take a look at the bottom-right map there; all of its labels are done this way (click the thumbnail to view it full-size). – Alex Hajnal Nov 7 '18 at 10:48
  • Correction, the labels on that map use Size 0.5mm, Transparency 50%, Blend mode Normal. The idea is the same though; just enough of a buffer to make the letters readable without obscuring the underlying map. – Alex Hajnal Nov 7 '18 at 12:30
  • IMO not possible in QGIS map canvas, but you can achieve this in the map composer: see gis.stackexchange.com/questions/230671/… – eurojam Nov 8 '18 at 6:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.