Select to view content in your preferred language

How to set Opacity of TocLayer

885
3
12-13-2011 10:24 PM
SelçukTınaz
Occasional Contributor
Hi Everyone,

  I have a problem about setting opacity of TocLayer. I have seven MapService those are already loaded, I am selecting one of these MapServices and then selecting one of its Layer(TocLayer).
I need to set this ones opacity, but it looks like it is LayerInfo and it doesn't have "Opacity" property.

Any Help?

Thanks in Advance
0 Kudos
3 Replies
ChrisBradberry
Deactivated User
You have to set the opacity to the whole map service, you can't single out sublayers in the service and change the opacity.  I have not had much luck in setting the opacity in the mxd before I make the service either. 

Chris
0 Kudos
JenniferNery
Esri Regular Contributor
You can turn the sub layer off by excluding its ID in ArcGISDynamicMapServiceLayer.VisibleLayers property and create a FeatureLayer for this sub layer instead so you can control its Opacity.
0 Kudos
SelçukTınaz
Occasional Contributor
Thanks for all your answers,

But, I don't want to add any additional Layer, because I have much already, when I add one more, the application getting worse. Because of this, I need to use SubLayers(they are typeof LayerInfo) inside the ArcGISDynamicMapServiceLayer without adding any.

Thanks for All
0 Kudos