[OpenLayers-Users] LayerSwitcher - Panel show and disable
layerentry
BMcBride
bmcbride at chacompanies.com
Thu Aug 19 09:09:26 EDT 2010
To make the layerswitcher initially visible, you can do something like:
map.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':false}));
var ls = map.getControlsByClass('OpenLayers.Control.LayerSwitcher')[0];
ls.maximizeControl();
To set layer visibility, you can do something like:
layer.setVisibility(false);
-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/LayerSwitcher-Panel-show-and-disable-layerentry-tp5438853p5440125.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list