Hi List,<br><br>If you  want to click something else than the Control to toggle the layerswitcher you need  an extra function to check the state of the Control by looking at the minimizedDiv or maximizedDiv propery. I never worried about the logic of the terms.<br>
<br>If the maximizeDiv display ==&quot;none&quot; the switchercontrol is in the maximized state so it seems<br><br>so:<br><br>  OpenLayers.Control.LayerSwitcher.prototype.isShowControls  = function  () {<br><br>        return(this.maximizeDiv.style.display==&quot;none&quot;) ;<br>
  }        <br><br>usage:<br>        if(layerSwitcher.isShowControls())<br>            layerSwitcher.minimizeControl()<br>        else<br>            layerSwitcher.maximizeControl();<br><br>this is compatible with the layer switcher control button (class: olControlLayerSwitcher)<br>
<br><br>regards, Huub<br>