<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=468204920-31082008><FONT face=Arial 
color=#0000ff size=2>Running also in the same problem, i have enhanced the 
OpenLayers.LayerSwitcher by adding a radiobutton to each layer entry. It sets a 
property for the map: map.aktLayer=layerIndex.</FONT></SPAN></DIV>
<DIV><SPAN class=468204920-31082008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=468204920-31082008><FONT face=Arial color=#0000ff 
size=2>Control : map.addControl(<SPAN class=468204920-31082008><FONT face=Arial 
color=#0000ff size=2>new 
OpenLayers.Control.LayerSwitcherRadio()</FONT></SPAN>);<BR></DIV></FONT></SPAN>
<DIV dir=ltr align=left><SPAN class=468204920-31082008><FONT face=Arial 
color=#0000ff size=2>To get the active layer, call 
map.layers[map.aktLayer].</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468204920-31082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=468204920-31082008><FONT face=Arial 
color=#0000ff size=2>Example : 
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/labels_radiobtn.html</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468204920-31082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=468204920-31082008><FONT face=Arial 
color=#0000ff size=2>Script&nbsp;: 
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/javascript/layerswitcherradio.js</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468204920-31082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=468204920-31082008><FONT face=Arial 
color=#0000ff size=2>Arnd Wippermann</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> users-bounces@openlayers.org 
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von </B>Bas 
Couwenberg<BR><B>Gesendet:</B> Donnerstag, 28. August 2008 10:54<BR><B>An:</B> 
users@openlayers.org<BR><B>Betreff:</B> [OpenLayers-Users] Layer selection in 
LayerSwitcher<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>
<DIV>Hello,</DIV>
<DIV>&nbsp;</DIV>
<DIV>is it possbile with the LayerSwitcher control to select a layer (I don't 
mean turn invisible)&nbsp;which I then could use to change it opacity. The 
opacity part works well from the examples but I want to do this per layer I 
select.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Bas Couwenberg</DIV></DIV></BODY></HTML>