[OpenLayers-Users] Showing layerswitcher maximized by default

Tomas Straupis tomasstraupis at gmail.com
Thu May 3 06:08:09 EDT 2012


Hello

2012-05-03 Jan Hartmann wrote:
> Is it possible to show the layerswitcher open by default, so that all layers
> are shown when a user accesses the page?

  Try this:

var switcherControl = new OpenLayers.Control.LayerSwitcher();
map.addControl(switcherControl);
switcherControl.maximizeControl();

-- 
Tomas


More information about the Users mailing list