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_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users