[Geoserver-users] layer groups vs. comma sep. layers in url

hello,

I have 3 layers for the state of maryland that i have mapped. When I view each individual layer seperately openlayers plays nice. When I comma seperate all the layers in the correct order in the url string open layers also plays nice. When I create a layer group and reference that layer group in the url and zoom in not the entire map can be panned (the map sees to stop at a latitude and longitude that cuts off some of the map on the right). When I use my layer group however and I zoom out…I can see the entire map. Here are my bbox boundaries for each individual layers and the generated “envelope” for my layer group:

bbox in edges layer:

min long = -79.48764238858735 min lat = 37.88660114634407
max long = -74.9862604324992 max lat = 39.72303544033687

bbox in area landmark layer:

min long = -79.47557266958262 min lat = 37.969780644817476
max long = -75.06338599293267 max lat = 39.72300110664117

bbox in water layer:

min long = -79.46858415802117 min lat = 37.88660114634407
max long = -74.98626043250313 max lat = 39.72301636461467

Envelope in layer group:

Min x = -77.59478755939395 min y = 38.890326585858595
max x = -76.8213758586053 max y = 39.39751370311135

Obviously all these bounding values were generated by geoserver.

Also how does openlayers decide the zoom level max and min from the layers? Because that is another thing that changes when I use a layer group vs comma seperated list of layers in the URL string.

thank you


Signed,
Alessandro Ferrucci