What would be the best way to take current extent and rotate it for 90 degrees around center point and it would work for any projection.
Let's say I have a map with n-layers enabled and landscape view. Meaning I can get extent of it. How can I get extent of a rotated view (90° rotation).
Sketch of rotation:
_
Center is fixed and should stay the same and aspect ration should be same as before.
Best Answer
This should do it:
To test it visually: