[Users] How to access a GeoExt Sublayer(JS) ?
Paul james
pauljame at gmail.com
Wed May 5 21:43:03 CEST 2010
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?
Thanks
Paul
On Tue, May 4, 2010 at 4:27 AM, Andreas Hocevar <ahocevar at opengeo.org>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
> > Users at geoext.org
> > http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100505/3f6c9d69/attachment.htm
More information about the Users
mailing list