AnsweredAssumed Answered

What event can I tap into to wait for the view to finish drawing after basemap toggle?

Question asked by Jefairfi on Nov 19, 2019
Latest reply on Nov 20, 2019 by ubatsukh-esristaff

I am trying to wait for the view's basemap to update and finish drawing after a basemap toggle event.  Is there a good consistent way to wait for the complete rendering of the map before trying the screenshot?  I was thinking of watching the "updating" property on the basemap layerviews, but this seems cumbersome.  Also, if I have many feature layers, would I have to watch the "updating" property on all layers before safely using the take screenshot function?

 

Here is a JSBIN showing a quick example of what I am talking about.  Click the basemap toggle to see what I am referring to.

Outcomes