Other than using "setDynamicLayerInfos", is there any other way to reorder layers?

824
1
Jump to solution
07-20-2014 10:01 PM
StephenLam
New Contributor III

This example is a reordering layers function, and it is exactly what I am going to implement, (1 map service has multiple layers), however while I call the following code, it is un-successfully to build the map (for detail, please find the attachment),

e.target.setDynamicLayerInfos(layer1Infos, true);

My map service is a dynamic map service. I think the example doesn't easily to implement, because I expect I can just simply pass the sequenced order id into the re-order function.

Any help could be appreciated.

0 Kudos
1 Solution

Accepted Solutions
StephenLam
New Contributor III
0 Kudos
1 Reply
StephenLam
New Contributor III
0 Kudos