AnsweredAssumed Answered

Refresh LayerView To Reflect Updated Database (4.0 JSAPI)

Question asked by sgreylyn on Jul 8, 2016


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?

Outcomes