I have a layer group called "basemap" in my GeoServer made up of 3 layers but their SLDs needs to be styled dynamically so I have decided to create a XML web service for the external SLDs but I am wondering whether I can pass multiple SLD files as shown below.
How do I go about it?
Please check my SLD parameter in my code below if that is how to do it.
Or should I stop using layer group and call the layers one by one and pass its external SLD link to it?
My Codes Below In OpenLayers
var getBasemap = function(){
GlobalBasemapLayer = new OpenLayers.Layer.WMS(
"Basemap",
geoserverWMSurl,
{ LAYERS: 'workspace:basemap',
format: format,
tiled: true,
transparent:true,
sld:'http://domain.com/getSLD/Layer1SLD,http://domain.com/getSLD/Layer2SLD,http://domain.com/getSLD/Layer3SLD'
},
{
buffer: 0,
displayOutsideMaxExtent: true,
isBaseLayer: false
}
);
};