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: 'times new roman'; 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 = ['parkings', 'summits', 'refuges', 'sites'];<br> c2cwms = new OpenLayers.Layer.WMS("C2C Objects",<br> "<a href="http://demo.mapfish.org/mapfishsample/1.1/wms">http://demo.mapfish.org/mapfishsample/1.1/wms</a>?",<br>
{<br> singleTile: true,<br> layers: c2cwmsLayers,<br> format: 'image/png',<br> transparent: true<br> }<br> );<br><br><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'times new roman'; 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 : 'parkings', 'summits', 'refuges', 'sites' 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"><<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>></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>
> Hello guys...<br>
><br>
> I have that layer on Openlayers :<br>
><br>
> var _layer = new OpenLayers.Layer.MapServer(<br>
> "PointLayer",<br>
> _cgi,<br>
> {<br>
> map: _mapfile,<br>
> singleTile: true,<br>
> layers: ['Layer1', 'Layer2', 'Layer3'],<br>
> transparent: "true",<br>
> format: "image/png"<br>
> },<br>
> );<br>
><br>
> If I use setVisibility on PointLayer, Layer1, 2 and 3 are turned ON...<br>
> 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's not OL<br>
functioality for turning things 'on/off'.)<br>
<br>
Regards,<br>
<font color="#888888">--<br>
Christopher Schmidt<br>
MetaCarta<br>
</font></blockquote></div><br>