Customize Default Edit Widget

1632
1
07-27-2016 01:30 PM
AdolfoMarinucci
New Contributor

Hi all,

I'm trying to customize the behavior of the default/standard edit widget:

Currently when you add a feature,

1) you need to select the template

2) then click on map

3) then you need to close the popup that is opened and go to point 1

My client need to insert hundreds of points so I'm trying to simplify the process:

1) select the template

2) Click on map, feature is added BUT is not selected nor template selection is NOT cleared

3) User can continuously click on map to add more features/points

Is this even possible? should I create a new widget?

I'd really appreciate any hints

Thanks,

Adolfo Marinucci

0 Kudos
1 Reply
GirishYadav
Occasional Contributor

Adolfo,

The workflow you a looking for is very much possible. You can either modify the existing WAB Edit widget or create your own custom widget.

In WAB Edit widget you can suppress Attribute Inspector popping up after draw by setting "disableAttributeUpdate" config param to true. But, this widget make use of ArcGIS JS API's Editor widget which deactivates after draw complete. You can activate it programmatically again, but creating a custom widget will give you more flexibility and control. Therefore, in custom widget do not use ArcGIS API's Editor widget, rather you can use DrawToolbar and TemplatePicker to achieve this simplified editing workflow. Here is a sample for this:

Edit without editor widget | ArcGIS API for JavaScript 3.17

-Girish