6

I want to create a map of origins and destinations as a bubble map.

enter image description here

As you can see on the above image (green: origins, red: destinations). I have applied rule based symbology with expression on symbol size in the same layer. However, some red green bubble information being lost when I try to do that due to rendering order. I want to always render the bubble with bigger value so that they will both appear on the map. Is there a way to do that with rule based symbology? If not what is the proper way to do that?

enter image description here

enter image description here

enter image description here

enter image description here

2
  • Are those points of origin/destination in one layer or they are two different?
    – Taras
    May 3, 2021 at 10:08
  • they are in one layer
    – meteergen
    May 3, 2021 at 10:18

1 Answer 1

8

In rule based symbology, rules are applied in order.

You can draw the origin first, then the destination, and, again, re-draw the origin only if it is smaller than the destination (copy/paste the 1st rule and apply a condition)

enter image description here

6
  • 1
    I was easier than I though ... you are genius
    – Taras
    May 3, 2021 at 13:58
  • it is far from perfect though, because any change to the 1st rule must be replicated to the last rule
    – JGH
    May 3, 2021 at 14:00
  • Yes, but still this is the first working solution till now
    – Taras
    May 3, 2021 at 14:00
  • 4
    To limit duplication I would also filter the first rule with origin >= destination so that each feature is only drawn once.
    – MarHoff
    May 3, 2021 at 14:34
  • "Any change to the 1st rule must be replicated to the last rule": a workaround could be to use (custom) variables for style and filter settings that are used bot an 1st an last rule
    – Babel
    May 4, 2021 at 13:47

Your Answer

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

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