[OpenLayers-Users] Changing the referenced SLD for a layer coming from GeoServer

Kjel Anderson kanderson at truevectortech.com
Fri Feb 24 13:59:01 EST 2012


Hey Everyone,

I've got a layer that looks like this:

rc = new OpenLayers.Layer.WMS(
                        "ratecenter_boundaries - Untiled", "
http://localhost:8080/geoserver/wms",
                    {
                        layers: 'DWT:dwt_rc_boundaries_proj',
                        styles: 'DWT_RC',
                        transparent: true,
                        height: '330',
                        width: '2257',
                        srs: ' EPSG:900913',
                        format: format
                    },
                    {singleTile: true, ratio: 1}
                );

And that gives me that layer with the polygons symbolized by category. I
have a different SLD called DWT_RC_ILEC that I want to apply to the layer
rc in response to an event. I'm wondering how I do that. I tried rc.style =
'DWT_RC_ILEC' but that doesn't seem to be it.

Thanks,

Kjel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120224/19c4b049/attachment.html


More information about the Users mailing list