I am using Nliu's TC widget in my application, it is great. When I used the identifyTask to get the info for the visible layers, I could only identify layers from one map service. I used the code as following.
identifyParameters.layerIds = dynamicMapServiceLayer.visibleLayers;
It seems I have to manually assigned which map service I am going to use. I have multiple map services show in the TOC. Is there a way could know that which map service the visible layer belong to?
Thanks
Zhujing