AnsweredAssumed Answered

What is the very last event for a Map?

Question asked by amarsden on Dec 1, 2014
Latest reply on Dec 2, 2014 by khutchins-esristaff

I have some code.  It is normally is OK in Chrome


It was flaky in IE10.  The chunk that didn't work checked to see if a URL parameter was passed, if so, it set a query layer, used the passed parameter for a  query task, got the extent of the query results and set map extent to it.


I had it all in my general init  function.  Most times in IE it would fail to re-draw the map.  However a slight pan would put the map in the correct place (plus the slight pan of course)


I moved this code into the onLayersAddResult event of the map.


In IE it works a lot better,but still fails about 10% of the time.


Are any events after onLayersAddResult I can hook up to?  Or any other tricks to get my timing right?