AnsweredAssumed Answered

map.centerAndZoom deferred

Question asked by timw1984 Champion on Jan 28, 2016
Latest reply on Jan 28, 2016 by timw1984

Good afternoon everybody,

 

In my webapp I use the map centerAndZoom method Map | API Reference | ArcGIS API for JavaScript  which will return a deferred.

 

I haven't worked with deferred before and was wondering how I can continue with my code once the centerAndZoom has finished.

 

Would it look something like this or can somebody (probably Robert) give me an example?

 

map.centerAndZoom(allPoints[0].geometry,8).then(function(){

 

     //continuation of the code

 

});

 

 

Thanks,

 

Tim

Outcomes