[OpenLayers-Users] geoserver group layers and styles

Andreas Hocevar ahocevar at opengeo.org
Tue Feb 14 04:10:33 EST 2012


I'm not aware of a way to do this. This question may better be suited
for the goeserver-users list.

You can, however, group layers in an OpenLayers.Layer.WMS as well, and
assign styles:

new OpenLayers.Layer.WMS("combo", "/geoserver/wms", {
    layers: "layer1,layer2,layer3",
    styles: "style1,style2,style3"
});

Andreas.

On Mon, Feb 13, 2012 at 5:32 PM, Kjel Anderson
<kanderson at truevectortech.com> wrote:
> Does anyone have an example of how to apply styles to the individual members
> of a group layer coming from geoserver?
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list