Using Layers from the service

2057
4
03-08-2011 09:29 PM
ManojrajTeli
Occasional Contributor II
I have created a dynamic map service and it contains many layers such as asset layer satellite imagery etc.My question is is it possible to use only few layers from the service without using entire service because i need to add opacity features and etc for each layer.Thank you in advance
0 Kudos
4 Replies
DominiqueBroux
Esri Frequent Contributor
Yes, you can change the viisbilities of the sublayers.
There is a sample here:  http://help.arcgis.com/en/webapi/sil...dWithTemplates

From the API, you have to use either the VisibleLayers property or the SetLayerVisibility method.
0 Kudos
ManojrajTeli
Occasional Contributor II
Can we control the opacity of these sublayers...???
0 Kudos
DominiqueBroux
Esri Frequent Contributor

[INDENT]Can we control the opacity of these sublayers...???
[/INDENT]

No, the opacity is defined at the server side and can't be changed at the client side.
0 Kudos
ManojrajTeli
Occasional Contributor II
Thanks friend incase i have difficultly then i post that query.
0 Kudos