Bug report #10546
When symbol units is in map units then the symbol in composer legend has a padding around it
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||duplicate|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||18953|
The attached image may explain better what it is going on:
*) the svg symbols and the yellow symbols are defined in map units, the more the units the more a padding is used around the symbol in the legend
*) the same layer used is used with a symbology in millimiters (color circles) and no such padding is applied.
It is not a regression but hopefully is an easy fix in time for 2.4.
#4 Updated by Giovanni Manghi about 6 years ago
Nyall Dawson wrote:
Unless I'm missing something, aren't symbols using map units unusable in legend at the moment? I just tried for the first time it seems symbols using map units are drawn at some seemingly random size.
it is the "data defined" properties that isn't working.
You can define the size of point symbols in map units and get legends (in the composer) with a symbol of the proper/needed size. Problem is that in the composer the symbol is "padded". In the attached image you see that there are symbols (in map units) that are not aligned to left. The padding increases with the value of map units.
#6 Updated by Giovanni Manghi about 6 years ago
- File 42.png added
Nyall Dawson wrote:
I'm not referring to data defined sizes - just a simple marker with size in map units. In the legend the symbol isn't drawn to scale for me. Can you test this and confirm?
the size of symbols see the attached screenshot, both layers (same source) are 20 map units (meters), they seems ok to me (other than the padding).
#10 Updated by Gilles Turgeon about 6 years ago
- File Couverture.zip added
I am not sure taht this is the same bugs, but the other (#11006) is not the same so I post this file here to.
Composer dont seem to take in consideration the scale ou the unit of the map when drawing border of polygon ou line in the legend when the layer use map units.