Hi Dekek, As far as I know, there is no property or field. When the switcher opens or closes, the CSS display of the switcher will be modified directly. As such, I think you can only check the css display state to see if it's currently open.
I'd probably use jQuery to find the layerswitcher and ask its display state. You could, for example check for the OpenLayers_Control_MaximizeDiv css id. if it's visible, the layerswitcher should be hidden. On Fri, Nov 11, 2011 at 12:07 PM, Derek Watling <[email protected]> wrote: > How can I programmatically determine if the LayerSwitcher is currently open > or closed? > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Determine-if-LayerSwitcher-is-open-or-closed-tp6985047p6985047.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users >
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
