Hi,
I'm able to create a horizontal and vertical line to make a grid on top of a polygon based on xmin, ymin, xmax and ymax but it's coming out of the polygon.
How can I make grid restrict with the polygon boundary? Thanks in advance.
Please find the code: https://codepen.io/Andy0206/pen/yLrpXjp?editors=1000
Solved! Go to Solution.
Hi there,
You can use geometryEngine.intersect method to get a new geometry from intersection between two geometries. I updated your codepen to show this: https://codepen.io/U_B_U/pen/jORYZmN?editors=1000
Hi there,
You can use geometryEngine.intersect method to get a new geometry from intersection between two geometries. I updated your codepen to show this: https://codepen.io/U_B_U/pen/jORYZmN?editors=1000