Toggle the visibilties of layers in a tiled map services

Discussion created by hzhu on Jan 31, 2011
Latest reply on Feb 1, 2011 by hzhu
I create a multi-layered cached map services. The intention is to be able to toggle the visibilities of the individual layer in the map services. However, unlike the dynamic map serivce, there is no method like setVisibleLayers(visibleLayers) in javascript API for a tiled map service. I am not sure toggle the invidual layer in a tiled map service is even possible. Can someone enlighten me on this?