Bug report #19354

Arrows are too long in the layer list legend

Added by Carolyn Krause about 5 years ago. Updated about 5 years ago.

Category:Map Legend
Affected QGIS version:3.0.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:27182


Text copied from question on GIS Stackexchange: https://gis.stackexchange.com/q/207990/81764
The issue was first described as occurring in QGIS 2.14, but the original post was updated to say that it persists in QGIS 3.0

In QGIS 2.14.5 LTR (and recently in QGIS 3.0) I've set up a beautiful map design with a graduated renderer and vector field markers for each value range (arrow length is directly proportional to stream velocity, which ranges from 0.001 -~5m/s).

This worked great, but I wonder if I missed a setting to shorten the arrows in the legend. With a 'normal' width layer window, the class values cannot be seen:
Units: millimeter

(image showing that arrow symbol previews displayed in layers panel are far too long - apparently at least 6 inches)

My first guess was, that it has sth. to do with switching arrow length, line width units from millimeter to map units, but this doesn't affect the legend:
Units: map units

(image showing that the issue persists when units are switched from mm to map units)

Issue still persists in QGIS 3.0.
I created a screencast to visualize this: https://youtu.be/oxJ3tGXFB18
In properties / symbology the symbols render correctly:

(image showing that arrow symbols are rendered as only the triangular arrow heads in the properties/symbology window)

Note that the layer list displays the markers correctly, when duplicating the layer or applying changes to the style as long as layers panel width does not change.

- Original post on GIS Stackexchange by Jochen Schwarze (https://gis.stackexchange.com/users/63747/jochen-schwarze)

stream_velocity.zip (211 KB) Jochen Schwarze, 2018-07-11 01:08 PM


#1 Updated by Richard Duivenvoorde about 5 years ago

Hi Carolyn,

I think it would be very helpful if you added a small dataset + QGIS3 project file with the styles used in screenies en movies.

That way it can be reproduced and debugged.

Is that possible?


Richard Duivenvoorde

#2 Updated by Carolyn Krause about 5 years ago

Hi Richard,

Thank you for your interest in this issue. I don't have the data you requested, but I passed your request along to the original poster of this issue on GIS Stackexchange.


Carolyn Krause

#3 Updated by Jochen Schwarze about 5 years ago

Hi all,
@Carolyn: thank you for raising this issue!
See the attached zipfile for a sample dataset, QGIS project (created with 3.2) and a style file for convenience.
Best regards, Jochen Schwarze

Also available in: Atom PDF