Hey Everyone,<div><br></div><div>I've got a layer that looks like this:</div><div><br></div><div><div>rc = new OpenLayers.Layer.WMS(</div><div> "ratecenter_boundaries - Untiled", "<a href="http://localhost:8080/geoserver/wms">http://localhost:8080/geoserver/wms</a>",</div>
<div> {</div><div> layers: 'DWT:dwt_rc_boundaries_proj',</div><div> styles: 'DWT_RC',</div><div> transparent: true,</div>
<div> height: '330',</div><div> width: '2257',</div><div> srs: '<span class="Apple-tab-span" style="white-space:pre">        </span>EPSG:900913',</div>
<div> format: format</div><div> },</div><div> {singleTile: true, ratio: 1}</div><div> );</div></div><div><br></div><div>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.</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Kjel</div>