AnsweredAssumed Answered

Toggle div Visibility for Visible Layers

Question asked by askewwa on Mar 13, 2014
Latest reply on Mar 25, 2014 by waskew1
I am trying to toggle the visibility of a particular div container when certain layers are visible.  I am using the table of contents widget to toggle layer visibility from the following link:  I have the identify task working properly for the visible layers using the following code and I think that I need to do something similar to get the visible layer name, however, I cannot seem to modify it to work for toggling the div visibility:
var deferred = identifyTask.execute(identifyParams); deferred.addCallback(function(response){      return, function(result){      var feature=result.feature;      feature.attributes.layerName = result.layerName;         var template = new esri.InfoTemplate("${Name}", "${*}");      feature.setInfoTemplate(template);      return feature;      }); });      map.infoWindow.setFeatures([deferred]);;

Could someone please provide guidance on how I can go about this?  Thanks in advance.