hiding legend cells in tableview

Discussion created by hharoon on Dec 11, 2012
Latest reply on Dec 12, 2012 by hharoon
im using this offline tiled example to hide legend items for certain layers. I am able to hide the cells, but what this also does is hide the mapview layer aswell. how can i modify this code to not turn off the map view layers and use another boolean variable instead of the current invisible, since i need to use invisible for something else.