Hi,
Is it possible to rotate the extent of the polygon based on the angle? I'm able to create a grid on the top of polygon but it's not coming properly with the grid boundaries. I can rotate the map view but the extent is always pick the north direction. So, it looks odd on the map.
Here the Codepen example: https://codepen.io/Andy0206/pen/yLrpXjp

Thanks for help in advance