Toggle the visibilities of an ArcGISTiledMapServiceLayer

Idea created by 1_hzhu on Mar 10, 2011
    New
    Score70
    • 1_hzhu
    • jwarzi
    • designvista
    • jonesra
    • astoffel
    • 1_mdlong
    • agalushkadev

         If you look at the web APIs (Javascript, Flex, Silverlight/WPF), there is neither a setVisibleLayers method nor a writable visibleLayers propertie for an ArcGISTiledMapServiceLayer to toggle the visibilities of multi-layer cached map services. On one hand you can create a cache for each individual layer in a multi-layer cached map sevice, on the other hand, you can not take advantages of it to dynamically toggle the visibilites of  those individual layers. I would like to this kind of functionality to be implemented in the future version. Such functionality is not only logical but also very practical. For example, I have several contour layers, they are perfect candidates for layers in a multi-layer cached map service. In current APIs, i could not toggle the visibility of individual contour layer. I have to create a seperate cached map service for each contour layer, which is not only unpractical but also waste of server resouce.