I would like to be able to make a layer visible when a user clicks on the query bookmark widget I found in the samples. Currently the widget works fine even if the layer is not turned on. So, all I need to do is check and see if the layer is currently visible and if it is not make it visible. It sounds easy, but I have not been able to find the right code yet. Any help is appreciated. Thanks.