This content has been marked as final. Show 7 replies
I think at the moment it only works with the map service itself and not the sublayers.
no, it is not possible. (The only way, if you initialize each sub layer as ArcGISDynamicMapServiceLayer :rolleyes: )
Here is important to understand how is it works.
1 - ArcGISDynamicMapServiceLayer is container for IMAGE exported from server,
parameters you set for ArcGISDynamicMapServiceLayer are IMAGE export parameters.
Not 55 images for 55 sublayers, but 1 image exported form server for 55 sublayers.
2 - Flex Map is container for all layers:
static layer (navigation, scalebar, copyright, logo ...),
map layers (each 1 is something like flex display object / container ))
The transparency you set for ArcGISDynamicMapServiceLayer is alpha parameter for flex component (for IMAGE - 1 image for 55 sublayers)
Look at this discussion. May be you do not need to change transparency in flex code, but you set layers transparency in mxd file.
You can control the transparency of the sublayers if you're using ArcGIS 10.1 and the 3.0 API.
One opinion (if there really is not other way) is to romove the sublayer from the mapservicelayer in code and to bring in the same mapservicelayer again with only the sublayer.
So does the same hold true for the ability to move the sublayers (children) up and down in the TOC and map drawing order? I have set the ability to drag and drop layers in the TOC, the UI allows the ability to move the sublayers, but the map/toc reorder only applies to the parent layers. Is there a way to allow users to reorder the sublayers both in the TOC and map drawing/layering?
1 of 1 people found this helpful
Questions like this should be posted to the JS API space. Here are some similar threads in the JS API Space: