4

How do I dynamically color labels in the color of the labeled feature? As you can see in the screenshot, the lines are in different colors, but the labels are just in black. As I know, I have to set the label color manually to get my expected result. But is there also a dynamic way to do so? Surely there is, because it‘s QGIS! But I don‘t know how. Any Ideas?

enter image description here

6

You need to use the following expression at the label color:

@symbol_color

enter image description here

enter image description here

Here is the output:

enter image description here

| improve this answer | |
  • 1
    QGIS rocks again and again! – MAP Mar 10 '19 at 18:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.