identify widget

Discussion created by pmbalda on May 5, 2010
Latest reply on May 5, 2010 by BZhengesriaustralia-com-au-esridist
I am using the javascript identify widget. However, I am adding and removing layers on my map dynamically. I need to know how to add/remove map services. Or, disable a service if their is no corresponding layer. At this time, even with the layer option set to Visible, it will still identify a layer after it's been removed.