Toggle visibility of a graphic

Discussion created by aslaken on Aug 19, 2013
Latest reply on Sep 1, 2013 by kuiperfoliage

I need to be able to turn the visibility of a graphic on and off, but as a graphic does not have a visibility property I'm not sure how I can achieve this behavior. The option of explicitly setting the graphic's symbol property to a transparent symbol would not work in my scenario, as the graphic's symbol is given by a UniqueValueRenderer. Does anyone have any other suggestions as to how this behaviour can be achieved?