[OpenLayers-Users] displayInLayerSwitcher option

andy aborruso at tin.it
Fri Apr 27 10:20:12 EDT 2007


Hi all,
another stupid question. I would like to hide a layer in the 
layerswitcher. I know I can use displayInLayerSwitcher option, but 
probably my lack of javascript knowledge is too big.

I have tried with unsuccess with this kind of syntax (openlayers 2.3):
"var myvar= new OpenLayers.Layer.WMS( "Mylayername", 
"http://mywmsserver/wms?", {layers: 'mylayer', format: 
'image/png',displayInLayerSwitcher: 'false'},{isBaseLayer: false});"

Which is the right way to hide a layer from LayerSwitcher?

Thank you for all your dev and support job,

a



More information about the Users mailing list