[OpenLayers-Users] Make LayerSwitcher open by default?
Puneet Kishor
punk.kish at gmail.com
Wed May 9 13:04:21 EDT 2012
On May 9, 2012, at 11:35 AM, Keith Wiley wrote:
> Users who aren't familiar with the OpenLayers look-and-feel aren't seeing the tiny little 'plus' sign in the upper-right corner of my map. They don't realize they have the option of turning various layers on and off. I don't see any parameters on LayerSwitcher or its parent, Control, to make the control visible or 'open' by default.
>
> Is there anything I can do about this?
>
var ls = new OpenLayers.Control.LayerSwitcher();
map = new OpenLayers.Map("map", {
"controls": [
ls,
.. other controls
],
.. other options ..
});
ls.maximizeControl();
--
Puneet Kishor
More information about the Users
mailing list