[OpenLayers-Users] geoserver group layers and styles

Andreas Hocevar ahocevar at opengeo.org
Tue Feb 14 13:18:40 EST 2012


Yes, this means one image per "layer1,layer2,layer3" group. Even with
8 layers that's only one image :-).

Andreas.

On Tue, Feb 14, 2012 at 7:09 PM, Kjel Anderson
<kanderson at truevectortech.com> wrote:
> Does that eliminate having as many layers rendered to individual images? I'm
> trying to make it a bit faster. I've got eight layers at the moment. I'd
> like to combine a few of them.
>
>
> On Tue, Feb 14, 2012 at 1:10 AM, Andreas Hocevar <ahocevar at opengeo.org>
> wrote:
>>
>> 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.
>
>
>
> _______________________________________________
> 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