Is there any python function allowing a user to rotate map layers in the map canvas. If so, could you please point this out for me?
I want to rotate a map layer, using a factor of rotation in degrees, into the map canvas so as to better fit and display all map elements in the layout. I tried using qgsAffine but I didn't succeed.
Thank for your help.