Ah, and the reason for this is that the layer in your configuration results in a single image request to the server, so the server stacks the images of the three layers into one.
Andreas. On Jun 24, 2012 11:20 AM, "Andreas Hocevar" <[email protected]> wrote: > To achieve this, you have to use a style that uses opacity on the server > side. > > Andreas. > On Jun 21, 2012 7:56 PM, "julia paredes" <[email protected]> wrote: > >> Hi all, >> >> If I have a group layer definition such as the following : >> >> var Test = new OpenLayers.Layer.WMS( >> "Group Layer", mapserverUrl, >> { >> map: "C:/Users/Administrator/map.map", >> layers: [ >> "First", >> "Second", >> "Third" >> ], >> format: "image/png", >> transparent: "true" >> } >> , >> { >> isBaseLayer: false, >> visibility: false, >> opacity: opa >> } >> ); >> >> Is there a way I could change the opacity of just one of the layers >> belonging to the group layer? >> Before adding a group layer I was using jquery to add a slider and a drop >> down menu to select a layer to change the opacity. >> I am not sure if the layer opacity slider provided by GeoExt will make >> this easier or if there is a way to access a particular layer in the group >> layer by doing something like Test.layers[0] >> >> Any ideas? >> >> Thanks in advance >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://www.geoext.org/cgi-bin/mailman/listinfo/users >> >>
_______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
