On May 5, 2010, at 21:43 , Paul james wrote:
> Hello Andreas...
>
> Other case, I´m trying to add GetFeature control to a specific sublayer,like
> that:
>
> control = new OpenLayers.Control.GetFeature({
> protocol:
> OpenLayers.Protocol.WFS.fromWMSLayer(_map.layers[1]),
> box: true,
> hover: true,
> multipleKey: "shiftKey",
> toggleKey: "ctrlKey"
> });
>
> Is that possible?
Yes, but instead of using OpenLayers.Protocol.WFS.fromWMSLayer, you should
construct the protocol by hand, using the featureType of the sublayer you need.
Regards,
Andreas.
>
> Thanks
>
> Paul
>
> On Tue, May 4, 2010 at 4:27 AM, Andreas Hocevar <[email protected]> wrote:
> Hi,
>
> On May 3, 2010, at 22:45 , Paul james wrote:
>
> > Hello guys...
> >
> > I have a application using GeoExt sublayers...
>
> 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.
>
> > I need to do something like that:
> >
> > ==> map.layers[1].mergeNewParams({SLD_BODY:StyledLayerDescriptor});
> >
> > How can I do that with geoext sublayers?
>
> 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.
>
> Regards,
> Andreas.
>
> >
> > Thanks
> >
> > _______________________________________________
> > Users mailing list
> > [email protected]
> > http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users