AnsweredAssumed Answered

Loading layers in a specific order

Question asked by ccposton on Apr 4, 2013
Latest reply on Apr 5, 2013 by dbroux-esristaff
I have a collection of layer paths and I want to loop through and add each of those layers in the order they appear in the collection. If I loop normally, the order of the layers is messed up. This is certainly due to the asynchronous nature of the services.

What is the best way to do what I want to do?

I tried using a Monitor but that just locked the whole thread forever since apparently the Initialized event is triggered in the UI thread. So the Monitor is never released.

Any ideas?

Outcomes