What could be causing my new Features to not have the event handling for that Layer (until reload of page)?

228
1
04-11-2019 10:20 AM
JasonStarks
New Contributor

I am using ArcGIS for JavaScript v.3.27 with a REST server running v.10.31.  I typically develop on Firefox 66 but I test on other browsers.  The behavior I describe here has been verified in Firefox and Chrome.

I am using a map to load various layers, some of which are editable Feature Layers.  I attach event handling for "click" and "dbl-click" events to the layer and these behave as expected for existing Features.  However, when I add a new Feature to a Layer, the "click" and "dbl-click" events don't trigger at all.  Refreshing the page adds the event handling to the Feature and it behaves as expected.  My wish is that the new Feature would behave as expected without a page refresh.

What could be causing this?

Thanks in advance.

0 Kudos
1 Reply
EvelynHernandez
Occasional Contributor III

If you put some of ur code it will be easier to detect ur problem

0 Kudos