Feature request #10820

checkbox to 'derotate' certain layers in composer

Added by Tom Grundy about 3 years ago. Updated about 2 years ago.

Category:Map Composer/Printing
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No


I have a map that is rotated 1.6 degrees in composer, and it has a lot of point layer markers (svg icons) on it that look a lot better if they are left 'upright' i.e. not rotated at all, i.e. rotation = 0 degrees instead of 1.6 degrees.

The question applies to any map rotation angle.

One way to do it is to set the rotation of that layer's svg markers to 358.4 in the qgis editor, but honestly it looks a bit odd because rotating it 358.4 in the editor then again 1.6 more in the composer results in some not-quite-exactly-360 visual artifact in the rendered composer, maybe due to rounding error.

Found another solution here:

But that would probably suffer from the same artifacts, and it seems like the solution could be cleaner.

So, this feature request is to add a checkbox to each layer in the main editor - maybe in the style editor - labeled something like "keep markers horizontal when rendered in the composer", but that wording probably needs some polishing. It would be interesting to also have a field where you could set the target rendered rotation to any angle, i.e. replace the word "horizontal" above with the rotation of your choice. I can't think of when that would be needed, but you never know.

Of course it's still important to calculate the marker's origin correctly, in case it has an offset; this only addresses the rotation of the marker itself about its correctly calculated origin based on the rotation of the map in the composer.


#1 Updated by Giovanni Manghi about 3 years ago

  • OS version deleted (Vista 32 home basic)
  • Operating System deleted (Windows)
  • Target version set to Future Release - Lower Priority

#2 Updated by Nyall Dawson about 2 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

Fixed in master since 2.8

Also available in: Atom PDF