I´m trying to do something like that : <a href="http://demo.mapfish.org/mapfishsample/1.1/examples/tree/tree_automatic.html">http://demo.mapfish.org/mapfishsample/1.1/examples/tree/tree_automatic.html</a><br><br>There is a layer :<br>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: &#39;times new roman&#39;; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><pre style="white-space: pre-wrap;">
c2cwmsLayers = [&#39;parkings&#39;, &#39;summits&#39;, &#39;refuges&#39;, &#39;sites&#39;];<br>    c2cwms = new OpenLayers.Layer.WMS(&quot;C2C Objects&quot;,<br>        &quot;<a href="http://demo.mapfish.org/mapfishsample/1.1/wms">http://demo.mapfish.org/mapfishsample/1.1/wms</a>?&quot;,<br>
        {<br>            singleTile: true,<br>            layers: c2cwmsLayers,<br>            format: &#39;image/png&#39;,<br>            transparent: true<br>        }<br>    );<br><br><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: &#39;times new roman&#39;; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></pre>
</span>But using the treeview I can turn on/off : &#39;parkings&#39;, &#39;summits&#39;, &#39;refuges&#39;, &#39;sites&#39; Individually...<br><br>Paul<br><br><br><br><div class="gmail_quote">On Wed, Jul 1, 2009 at 4:12 PM, Christopher Schmidt <span dir="ltr">&lt;<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On Wed, Jul 01, 2009 at 04:08:50PM -0300, Paul james wrote:<br>

&gt; Hello guys...<br>
&gt;<br>
&gt; I have that layer on Openlayers :<br>
&gt;<br>
&gt;       var _layer = new OpenLayers.Layer.MapServer(<br>
&gt;        &quot;PointLayer&quot;,<br>
&gt;        _cgi,<br>
&gt;        {<br>
&gt;            map: _mapfile,<br>
&gt;            singleTile: true,<br>
&gt;             layers: [&#39;Layer1&#39;, &#39;Layer2&#39;, &#39;Layer3&#39;],<br>
&gt;            transparent: &quot;true&quot;,<br>
&gt;            format: &quot;image/png&quot;<br>
&gt;        },<br>
&gt;     );<br>
&gt;<br>
&gt; If I use setVisibility on PointLayer, Layer1, 2 and 3 are turned ON...<br>
&gt; How Can I turn on/off Layer1,Layer2,Layer3 individually on javascript?<br>
<br>
</div></div>Create three different layers?<br>
<br>
(You can probably also use mergeNewParams, but that&#39;s not OL<br>
functioality for turning things &#39;on/off&#39;.)<br>
<br>
Regards,<br>
<font color="#888888">--<br>
Christopher Schmidt<br>
MetaCarta<br>
</font></blockquote></div><br>