Hello,
is it anyhow possible to rotate labels (LabelStyle)?
I need the labels to get fixed rotation and stay like that no matter the viewport's rotation.

Screenshot is Cordova version of our app using OpenLayers.
After a short look into LabelRenderer, it seems, that this isn't possible.
Yes, I guess.
I started the issue to possibly discuss any possibilites, including editing the renderer somehow.
Took another look at the label renderer and sadly, it doesn't look possible.
Try to use the new user defined renderers. You get a canvas and can draw whatever you want. Should be possible and not so difficult.
I get a Skia canvas? There is no such method that allows me to draw rotated text (DrawText()).
Yes, you get one. And you don鈥檛 rotate the text, you rotate the canvas in the other direction and than draw the text.
Well, there will be one canvas for one label? It won't work otherwise, I need every label to have different rotation.
It is always the same canvas. But you could rotate it for each draw in another direction.
canvas.Save();
canvas.Rotate(30);
canvas.Restore();
canvas.Save();
canvas.Rotate(12);
canvas.Restore();
Or you could rotate by the difference.
Ok, will try. Thank you.
See here.
Good. Custom renderers are really helpful here. First because everyone can solve their own problems. Second because this will result in more merge requests for new functionality.

Worked like a charm. Thank you for the advice.
@hajmajeboss Perhaps it is possible to create a PR out of this. I guess LabelStyle should get a Rotation field. Anything else? Could there be complications?
Why not add Rotation property and RotareWithMap property to LabelStyle and render it accordingly?
Hello ! I ran into this problem today and I'm wondering if there could be a PR for this with what @hajmajeboss had mentioned above
@leo-costa Yes, this is an addition that makes sense. Rotate and RotateWithMap could be seen as separate issues but for the feature described above you will need both.
This is the current functionality.

The labels don't rotate. Which is what you want in most cases.
RotateWithMap should be a boolean. Should default be false. If true the label will rotate with the map, so in the screenshot above the labels would be rotated 45 degrees. Not a common use case in itself.
Individual rotation of the label. If RotateWithMap is false they will simply be rotated relative to the top of the form. If RotateWithMap is true they will be rotated relative to the north of the map.
@leo-costa I created a new issue for this, lets discuss this there:
https://github.com/Mapsui/Mapsui/issues/983