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: "shiftKey",<br> toggleKey: "ctrlKey"<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"><<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>></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>
> Hello guys...<br>
><br>
> 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>
> I need to do something like that:<br>
><br>
> ==> map.layers[1].mergeNewParams({SLD_BODY:StyledLayerDescriptor});<br>
><br>
> 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>
><br>
> Thanks<br>
<div><div></div><div class="h5">><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
> <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>