Sample of AMD version Toggle Layer Visibility

Discussion created by steven_3535 on Jan 27, 2014
Latest reply on Jan 28, 2014 by RWinter85
Is there a sample out there for this.  I tried to convert the legacy version here but it wouldn't display or toggle my layer on and off.