I'm guessing you have OnDemand mode enabled?The doc should mention that this also triggers an update.
Update is a asyncronous method. In other words you have to give the server a chance to send a response back. Instead wait for the myFeatureLayer.UpdateCompleted event to fire before you do the zoom.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.