It's working now. I forgot I had dynamic visibility enabled in the SLD for this layer.
Thanks, Paul 2013/1/8 Diego Guidi <[email protected]> > > I set visibility: false when creating the WMS layer. > > This results in the layer being shown in the layer switcher but turned > off. > > Exactly what I want. But I can't turn it on anymore. It seems to be > > disabled. > > Tried using layer,setVisibility(true) instead of layer.visibility = true? > > http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.setVisibility >
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
