3

I am new to QGIS and I'm using QGIS 3.8 on a Windows machine. I'm creating a commuter flow map using a virtual layer similar to the one Anita Graser has created here. When I try to add in a legend all the flow lines in the legend are displayed at exactly the same width and does not represent what is in the map.

How do I resolve the issue?

map of commuter patterns

1 Answer 1

4

This is a still-unresolved issue in QGIS. There are lots of symbology options, and some of them will not be reflected in the legend. If you visit the issue tracker page, you will find multiple open bug reports and feature requests about this type of issue.

Here are a couple of workarounds:

  1. If the arrow width appears correctly anywhere in the program (eg in the Layer Styling panel or the Layers panel), take a screenshot and add it to your print layout as an image.

  2. Otherwise you have to manually re-create the arrows in the print layout.

    • Use the "add arrow" button to add an arrow in the print layout.
    • Style the arrow to match the size and color of one category in your virtual layer.
    • Place the arrow on top of the legend so it covers up the existing symbol. Repeat for every category.
    • You may need to increase the spacing between rows in the legend.
    • Once you have the arrows arranged on top of the legend, select them and the legend and group them together. That allows you to move the whole group as if it was one item, and prevents you from accidentally messing it up.

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.