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.
Solved! Go to Solution.
I found the solution.
I found the solution.