Refresh LayerView To Reflect Updated Database (4.0 JSAPI)

1023
0
07-08-2016 10:16 AM
SethGreylyn
New Contributor


I understand that the 4.0 API is founded on a live-response model, where views at different levels update themselves based on changing data in the client. This was the reason that the redraw() method was deprecated in the 4.X version of the API.

However, how might one get a LayerView to update itself when the graphics' underlying features are changed in the database? Must we re-query the features and replace the LayerView's _graphics object programmatically, or is there a more reliable way of getting the view to re-draw the layer?

Tags (3)
0 Kudos
0 Replies