I am trying to achieve a functionality in which I want to select few points of a graphic layer among all by drawing a rectangle over them and then delete those selected points. Can anyone please help me with how to achieve this?
Solved! Go to Solution.
Hi there,
You can do it several different ways. In any case, I set up a simple codepen app showing this. I am using SketchViewModel to draw a rectangle on the map. Then we filter the graphics that intersect with the rectangle and delete those graphics.
Here is the codepen app: https://codepen.io/U_B_U/pen/YzeppyZ?editors=1000
Hi there,
You can do it several different ways. In any case, I set up a simple codepen app showing this. I am using SketchViewModel to draw a rectangle on the map. Then we filter the graphics that intersect with the rectangle and delete those graphics.
Here is the codepen app: https://codepen.io/U_B_U/pen/YzeppyZ?editors=1000
Thank you so much @UndralBatsukh . Worked perfectly fine.