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
Are you trying to rotate the grid to match the polygon, or are you trying to rotate the polygon to match the grid? Either way, I think the key would be to use geometryEngine.rotate. The first parameter would be the geometry you want to rotate, and the second parameter would be the angle.