4

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.

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.

0

Based upon the answer by guest above (thanks!), this is the updated syntax for usage in QGIS 3.x.

attribute(@atlas_feature, 'ColumnWithRotationValue')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.