How do I delete a selected feature from database when it is clicked on in the ArcGIS API for javascript?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
|
Do you mean 'feature' instead of 'feature class'? If so, the default editing widget for the javascript api handles deleting features. Here is a link to the Esri sample: http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/ed_default_editingwidget |
|||
|
|
I don't understand exactly what you're asking, but if you want to handle the delete manually and check whether a graphic is actually selected before trying to delete, you could do something like this:
|
||||
