<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=968221412-26072010><FONT color=#0000ff 
size=2 face=Arial>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968221412-26072010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=968221412-26072010><FONT color=#0000ff 
size=2 face=Arial>I wouldn't take code from that example. It's a terrible hack 
by me to get the functionality of set the active layer. I have only replaced the 
code of the OpenLayers.LayerSwitcher without the right understanding what's 
going on.</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=968221412-26072010></SPAN><FONT face=Arial><FONT 
color=#0000ff><FONT size=2>A<SPAN 
class=968221412-26072010>rnd</SPAN></FONT></FONT></FONT><BR></DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> users-bounces@openlayers.org 
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von </B>Mehmet 
Sirin<BR><B>Gesendet:</B> Montag, 26. Juli 2010 12:07<BR><B>An:</B> 
users@openlayers.org<BR><B>Betreff:</B> Re: [OpenLayers-Users] Adding 
radiobuttons to LayerSwitcher<BR></FONT><BR></DIV>
<DIV></DIV>hi, <BR>that's exactly what I need! But I want use it with the 
layer-group function . <BR>So now I have layer-grouping via : <A 
href="http://www.cnblogs.com/iswszheng/archive/2009/12/15/1625069.html">http://www.cnblogs.com/iswszheng/archive/2009/12/15/1625069.html</A> 
and additional radiobuttons via <A 
href="http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/javascript/LayerSwitcherRadioReg.js">http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/javascript/LayerSwitcherRadioReg.js</A> 
(<A 
href="http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/labels_radiobtn.html" 
target=_blank>http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/labels_radiobtn.html</A>). 
Is there someone, who has time to merge these both functions (because I'm not 
able of developing OL source code), so that every layer in the layerswitcher 
with group functionality has a radiobutton ?<BR><BR>...would be awesome 
:)<BR><BR>
<DIV class=gmail_quote>2010/7/26 C. Mark | Geo-bit <SPAN dir=ltr>&lt;<A 
href="mailto:mark@geo-bit.de">mark@geo-bit.de</A>&gt;</SPAN><BR>
<BLOCKQUOTE 
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
class=gmail_quote>
  <DIV text="#000000" bgcolor="#ffffff">Hi,<BR><BR>I know this example, maybe 
  that is what you want.<BR><BR><A 
  href="http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/labels_radiobtn.html" 
  target=_blank>http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/labels_radiobtn.html</A><BR><BR><BR><BR><BR><BR><BR>Am 
  26.07.2010 00:07, schrieb Mehmet Sirin: 
  <BLOCKQUOTE type="cite">
    <DIV>
    <DIV></DIV>
    <DIV class=h5><PRE>Hi,

when adding a layer to the map, it is displayed with a checkbox in the
layerswitcher. Now I want to add radiobuttons right to the layernames in
layerswitcher. And then, when selecting one of them, a event should occur.
Yes I know there is Geoext for stuff like this, but after I looked at the
LayerTree example and didn't understand a thing... I want to stay with
OpenLayers.
which possibilities are there to realize this with OL?

I hope you have any ideas..




regards

  </PRE></DIV></DIV><PRE><FIELDSET></FIELDSET>
_______________________________________________
Users mailing list
<A href="mailto:Users@openlayers.org" target=_blank>Users@openlayers.org</A>
<A href="http://openlayers.org/mailman/listinfo/users" target=_blank>http://openlayers.org/mailman/listinfo/users</A>
  </PRE></BLOCKQUOTE><BR></DIV></BLOCKQUOTE></DIV><BR></BODY></HTML>