mine obey visibility. Make sure you arent grouping layers in your mapservice, TOC can't handle groups
Jeff, As you can see they are not grouped. When you say "obey visibility", are you setting the layers invisible when you declare, or like the method I'm using below?
//Use the ImageParameters to set the invisible layers in the map service during ArcGISDynamicMapServiceLayer construction.
var imageParameters = new ImageParameters();
imageParameters.layerIds = [0,1];
imageParameters.layerOption = ImageParameters.LAYER_OPTION_INCLUDE;
//can also be: LAYER_OPTION_EXCLUDE, LAYER_OPTION_HIDE, LAYER_OPTION_INCLUDE
//Takes a URL to a non cached map service.
var dynamicMapServiceLayer0 = new ArcGISDynamicMapServiceLayer("http://atlas.resources.ca.gov/ArcGIS/rest/services/Atmosphere_Climate/RIDGE_Precip_Radar/MapServer/", {
"opacity" : 0.5,"imageParameters":imageParameters});
//Takes a URL to a non cached map service.
var dynamicMapServiceLayer1 = new ArcGISDynamicMapServiceLayer("http://gisdev.srh.noaa.gov/arcgis/rest/services/GSP/gffg/MapServer", {
"opacity" : 0.5,"imageParameters":imageParameters});
map.addLayer(dynamicMapServiceLayer0);
map.addLayer(dynamicMapServiceLayer1);