3

I want that a layer changes its symbology depending on the theme selected.

Is that possible?

Maybe if I could retrieve the name of the active theme I could add it as a part rule at the symbology.

If ThemeName == 'A'
...do this symbology
else
...do this one

There's a a way to get it?

3

1 Answer 1

4

Yes, @Javier G you can do it by combining themes with layer styles. You assign a layer style to each theme.

Do you know how to have several styles available for a layer?

You set the style, then right click > styles > add...

This will open a dialog box where you can enter the name of the style. Set another style and repeat the procedure by assigning another name. enter image description here

This way you have multiple styles available for a layer, with a single click enter image description here

Now, you can create several themes and assign a certain style to each layer.

Every time you change the theme, the styles of all the layers you have set up will change, so your whole map

enter image description here

2
  • That was exactly what I Was looking for. Thanks!
    – Javier G
    Oct 7, 2020 at 6:00
  • I'm glad, you're welcome:)
    – Luis Perez
    Oct 7, 2020 at 15:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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