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?
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.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.