[Users] Change Opacity of a layer in a group layer
julia paredes
japr94 at hotmail.com
Thu Jun 21 19:56:41 CEST 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120621/b555a4b4/attachment.htm
More information about the Users
mailing list