Delete clicked boundary

911
10
Jump to solution
04-30-2020 03:20 AM
rsharma
Occasional Contributor III

Hi,

I want to know how to delete that boundary or polygon which is doubleclicked.

I know we can do it like this, but how to know that which polygon got clicked so that i ll get its graphics.

My polygons coming from db and i am createing new polygons also. found this link,

But don't know how it works for 4.14

Selecting and removing graphic (by rings array) in ArcGIS JSapi 3.x  

Robert Scheitlin, GISP‌ u have answered the above question, is their any otherway, i can delete my editable polygons one at a time

graphicslayer.remove(gra);

0 Kudos
10 Replies
RobertScheitlin__GISP
MVP Emeritus

Rajni,

   Seems pretty clear in the documentation.

buttons Number

Indicates the current mouse button state.

ValueDescription
0left click (or touch)
1middle click
2right click

Possible Values:0|1|2

0 Kudos