Hello Andreas...<br><br>Other case, I´m trying to add GetFeature control to a specific sublayer,like that:<br><br>  control = new OpenLayers.Control.GetFeature({<br>                protocol: OpenLayers.Protocol.WFS.fromWMSLayer(_map.layers[1]),<br>
                box: true,<br>                hover: true,<br>                multipleKey: &quot;shiftKey&quot;,<br>                toggleKey: &quot;ctrlKey&quot;<br>            });<br><br>Is that possible?<br><br>Thanks<br>
<br>Paul<br><br><div class="gmail_quote">On Tue, May 4, 2010 at 4:27 AM, Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<div class="im"><br>
On May 3, 2010, at 22:45 , Paul james wrote:<br>
<br>
&gt; Hello guys...<br>
&gt;<br>
&gt; I have a application using GeoExt sublayers...<br>
<br>
</div>A sublayer in a tree is nothing more than a representation of one WMS layer in the LAYERS param of an OpenLayers.Layer.WMS object.<br>
<div class="im"><br>
&gt; I need to do something like that:<br>
&gt;<br>
&gt; ==&gt; map.layers[1].mergeNewParams({SLD_BODY:StyledLayerDescriptor});<br>
&gt;<br>
&gt; How can I do that with geoext sublayers?<br>
<br>
</div>The same - just make sure that your SLD_BODY contains styles for every NamedLayer that is in the LAYERS param of your OpenLayers.Layer.WMS object.<br>
<br>
Regards,<br>
Andreas.<br>
<br>
&gt;<br>
&gt; Thanks<br>
<div><div></div><div class="h5">&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
&gt; <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
<br>
--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
</div></div></blockquote></div><br>