You can't change the sublayer visibilities of an ArcGISTiledMapServiceLayer.
The reason being that the tiles are not generated dynamically but are pre-generated in the server cache with the visibilities defined by the service.
Sidenote : you can't either change the sublayer visibilities of an ArcGISDynamicMapServiceLayer when this one is cached.
I have list of layers in TOC, I can make layer visible and invisible by checking the checkbox using ArcGISDynamicMapServiceLayer but there is no way with ArcGISTiledMapServiceLayer?
I have performance problem with ArcGISDynamicMapsServiceLayer.
Yes no way with an ArcGISTiledMapServiceLayer. The tiles are cached and can't be changed dynamically.
The caching mechanism allows good performance.
It's the counterpart of the dynamicity.
Try to organize your services on the server by taking care of these constraints (not always easy, but...)
Thanks dbroux,
I have list of layers in TOC, I can make layer visible and invisible by checking the checkbox using ArcGISDynamicMapServiceLayer but there is no way with ArcGISTiledMapServiceLayer? I have performance problem with ArcGISDynamicMapsServiceLayer. Please help me regarding this...
If you are using Flex Viewer, please post your question to: http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex. If you are using Flex API: http://forums.arcgis.com/forums/18-ArcGIS-API-for-Flex. This forum is for ArcGIS API for Silverlight. Although Flex API have same property on ArcGISDynamicMapServiceLayer http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/ArcGISDynamicMapServiceLayer.html#v..., we target a different technology so code will be different. It is best to post your question there.