Does someone know if it is possible to make the labels rotate the same angle as the map in the composer?
I'm trying using the expression attribute( $map, rotation) in the data defining placement, but it doesn't work.
Asked
Active
Viewed 694 times
4
-
similar question: http://gis.stackexchange.com/questions/129507/label-placement-on-rotated-map-in-qgis – underdark Jan 13 '15 at 17:25
2 Answers
3
Try using the expression: attribute( $atlasfeature , 'Rotation').
I used that when I had to rotate labels in an atlas by the rotation value in the coverage layer, and it worked. You have to use this expression in each feature you want labeled and rotated.
guest
- 31
- 1
1
Based upon the answer by guest above (thanks!), this is the updated syntax for usage in QGIS 3.x.
attribute(@atlas_feature, 'ColumnWithRotationValue')
Saijin_Naib
- 2,729
- 12
- 25