Select to view content in your preferred language

4.32 - ApplyEdits BUG - When Layer is HIDDEN (Codepen added)

57
0
yesterday
michaelkdev
Regular Contributor

Hi esri developers,

There's a bug with applyEdits when Layer X is hidden. When toggling off a layer -> we send a delete all to ArcGIS Api using applyEdits with queryFeatures (all). The delete all functionality is working perfectly when the layer is visible. However, when the layer is toggled off (visibility = false), the clear all will delete all features in memory (arcgis side) but it does not remove the graphics from the map (rendering). Time between processed in memory and renderer on the map is not correct. (Callback issue)

Added a codepen to reproduce this issue.
https://codepen.io/michaelk95/pen/azbLMNK?editors=1000

michaelkdev_0-1741787459224.png

  1. Updates are being mocked and applied (should be visible)
  2. When toggling "off" layer ship (visibility false) => A clear message is created (console output)
  3. The delete is processed BUT not removed from the map, layer will be hidden
  4. When toggling "on" the layer ship -> a blue rectangle will appear, but arcgis will say there are no features active!

This is quite a big issue and should be fixed?

Thanks in advance

 

Gr

Michael

 

 

0 Kudos
0 Replies