[OpenLayers-Users] Set visibility of WMS layer

Paul Meems bontepaarden at gmail.com
Tue Jan 8 06:02:09 PST 2013


It's working now.
I forgot I had dynamic visibility enabled in the SLD for this layer.

Thanks,

Paul


2013/1/8 Diego Guidi <diegoguidi at gmail.com>

> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130108/2a93932d/attachment.html>


More information about the Users mailing list