[Geoserver-users] How to change dynamic line color of WMS layer ??

HI all,

how can i change dynamic line color of WMS layer ??
I have tried OpenLayers.Layer.WMS.Post but it is depricated.
  
My layer is as follows -

var sh = new OpenLayers.Layer.WMS(
                    "stateHighway",
"http://localhost:8080/geoserver/drupal/wms",
                    {
                        LAYERS: 'drupal:sh',
      style: 'http://localhost/drupal/php/sh.sld’,
                        format: format,
                        tiled: true,
                        tilesOrigin : map.maxExtent.left + ',' +
map.maxExtent.bottom,
            transparent: true
                    },
                    {
                        buffer: 0,
                        displayOutsideMaxExtent: true,
                        isBaseLayer: false,
                    }
                );

I have also tried - sh.mergeNewParams({SLD:
'http://localhost/drupal/php/sh.sld’, styles: null});

but it wont work ..
    
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-change-dynamic-line-color-of-WMS-layer-tp5028088.html
Sent from the GeoServer - User mailing list archive at Nabble.com.