<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18876"></HEAD>
<BODY
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=042592608-25022010>hello again,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=042592608-25022010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=042592608-25022010>I try to realise Barts tips, but I have a little
problem it doesn't work and I don't see my fault. I can't "delete" the rounded
Corners of my layerswitcher. Perhaps somebody can give me a code
example?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=042592608-25022010>I try it like this in my openlayers
side:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=042592608-25022010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT size=2 face=Arial><SPAN
class=042592608-25022010>//create the layerswitcher</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2 face=Tahoma><SPAN
class=042592608-25022010>map.addControl(new
OpenLayers.Control.LayerSwitcher({'div':OpenLayers.Util.getElement('mapSwitcher')},{roundedCorner:false}));<BR></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2 face=Tahoma><SPAN
class=042592608-25022010>//make the background not transparent and
gray</DIV></SPAN></FONT>
<DIV dir=ltr align=left><FONT size=2 face=Tahoma><SPAN
class=042592608-25022010> if (navigator.appName == 'Microsoft
Internet Explorer')
{<BR> document.getElementById('OpenLayers.Control.LayerSwitcher_32_layersDiv').style.filter
="alpha(opacity = 100)";<BR> }<BR> if
(navigator.appName == 'Netscape')
{<BR> <BR> document.getElementById('OpenLayers.Control.LayerSwitcher_32_layersDiv').style.opacity
="1";<BR> }<BR> document.getElementById('OpenLayers.Control.LayerSwitcher_32_layersDiv').style.backgroundColor="#e9e9e4";</SPAN></FONT><FONT
size=2 face=Tahoma><SPAN class=042592608-25022010></DIV></SPAN></FONT>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr align=left><FONT size=2 face=Tahoma><SPAN
class=042592608-25022010><FONT face=Arial>// to place the layerswitcher
div</FONT> </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2 face=Tahoma><SPAN
class=042592608-25022010> OpenLayers.Util.getElement('mapSwitcher').style.width
=
"200";<BR> OpenLayers.Util.getElement('mapSwitcher').style.color
=
"black";<BR> OpenLayers.Util.getElement('mapSwitcher').style.position
=
"absolute";<BR> OpenLayers.Util.getElement('mapSwitcher').style.top
=
"400";<BR> OpenLayers.Util.getElement('mapSwitcher').style.left
= "5";</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=042592608-25022010><FONT color=#0000ff size=2 face=Arial>you
can see my side here:</FONT></SPAN></DIV>
<DIV><SPAN class=042592608-25022010><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=042592608-25022010><FONT color=#0000ff size=2 face=Arial><A
href="http://webgis.hsw.ch/GINES_V1.2/Start.php">http://webgis.hsw.ch/GINES_V1.2/Start.php</A></FONT></SPAN></DIV>
<DIV><SPAN class=042592608-25022010><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=042592608-25022010><FONT color=#0000ff size=2
face=Arial>Greetings and a lot of thanks</FONT></SPAN></DIV>
<DIV><SPAN class=042592608-25022010><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=042592608-25022010><FONT color=#0000ff size=2 face=Arial>Hanno
Rahn</FONT></SPAN></DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=de-ch><FONT
face=Arial>------------------------------------------</FONT></SPAN> <BR><SPAN
lang=de-ch><FONT face=Arial>Hanno Rahn, Dipl.-Ing. (FH)
Geoinformatik</FONT></SPAN> <BR><SPAN lang=de-ch><FONT face=Arial>ZHAW Zürcher
Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen
</FONT></SPAN><BR><SPAN lang=de-ch><FONT face=Arial>Fachstelle Geoinformatik
</FONT></SPAN><BR><SPAN lang=de-ch><FONT face=Arial>Grüental, Postfach CH-8820
Wädenswil </FONT></SPAN><BR><SPAN lang=de-ch><FONT face=Arial>Tel +41 (0)58 934
5592</FONT></SPAN> <BR><SPAN lang=de-ch><FONT face=Arial>Fax +41 (0)58 934 5580
</FONT></SPAN><BR><SPAN lang=de-ch><FONT
face=Arial>hanno.rahn@zhaw.ch</FONT></SPAN> <BR><SPAN lang=de-ch></SPAN><A
href="http://www.iunr.zhaw.ch/geoinformatik"><SPAN lang=de-ch><U><FONT
color=#0000ff
face=Arial>www.iunr.zhaw.ch/geoinformatik</FONT></U></SPAN></A><SPAN
lang=de-ch></SPAN> </P>
<P><SPAN lang=de-ch><FONT face=Arial></FONT></SPAN> <BR><SPAN lang=de-ch><FONT
face=Arial> </FONT></SPAN> </P>
<DIV> </DIV><BR>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> Bart van den Eijnden
[mailto:bartvde@osgis.nl] <BR><B>Gesendet:</B> Donnerstag, 25. Februar 2010
07:43<BR><B>An:</B> Rahn Hanno (rahn)<BR><B>Cc:</B>
users@openlayers.org<BR><B>Betreff:</B> Re: [OpenLayers-Users]
LayerSwitcher<BR></FONT><BR></DIV>
<DIV></DIV>Hi,
<DIV><BR></DIV>
<DIV>the layerswitcher.html example already shows how to place it in another
div.</DIV>
<DIV><BR></DIV>
<DIV>Wrt the other question, set the following API properties:</DIV>
<DIV><BR></DIV>
<DIV>
<DIV> /**</DIV>
<DIV> * APIProperty: roundedCorner</DIV>
<DIV> * {Boolean} If true the Rico library is used for
rounding the corners</DIV>
<DIV> * of the layer switcher div, defaults to
true.</DIV>
<DIV> */</DIV>
<DIV> roundedCorner: true,</DIV>
<DIV><BR></DIV>
<DIV> /**</DIV>
<DIV> * APIProperty: roundedCornerColor</DIV>
<DIV> * {String} The color of the rounded corners, only
applies if roundedCorner</DIV>
<DIV> * is true, defaults to "darkblue".</DIV>
<DIV> */</DIV>
<DIV> roundedCornerColor: "darkblue",</DIV>
<DIV><BR></DIV></DIV>
<DIV>Best regards,</DIV>
<DIV>Bart</DIV>
<DIV><BR>
<DIV>
<DIV>On Feb 25, 2010, at 7:32 AM, Rahn Hanno (rahn) wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<DIV><!-- Converted from text/rtf format --><BR>
<P><FONT size=2 face=Arial>Hello list,</FONT> </P>
<P><FONT size=2 face=Arial>Perhaps you can help me with another question. I
try to make the layerswitcher more individual. First I want to show it at
another place in an extra div and not at the right border. But I can't find
where I have to do this. Then I want to change the color of the div. The
darkblue is not good for my webside. I try to make it with css directly in my
page. It works but I always get terrible blue span tags over the div and under
the div object with the layer switcher. Can perhaps somebody help me to
arrange the layerswitcher somewhere else on the screen with a width of 200px
and a height of 500px. And can somebody tell me how to change the color of the
div and the layernames?</FONT></P>
<P><FONT size=2 face=Arial>Thank you for your help.</FONT> </P>
<P><FONT size=2 face=Arial>Greetings</FONT> <BR><FONT size=2
face=Arial>Hanno</FONT> <BR><FONT size=2 face=Arial> </FONT> <BR><FONT
face=Arial>------------------------------------------</FONT> <BR><FONT
face=Arial>Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik</FONT> <BR><FONT
face=Arial>ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und
Natürliche Ressourcen </FONT><BR><FONT face=Arial>Fachstelle Geoinformatik
</FONT><BR><FONT face=Arial>Grüental, Postfach CH-8820 Wädenswil
</FONT><BR><FONT face=Arial>Tel +41 (0)58 934 5592</FONT> <BR><FONT
face=Arial>Fax +41 (0)58 934 5580 </FONT><BR><FONT face=Arial><A
href="mailto:hanno.rahn@zhaw.ch">hanno.rahn@zhaw.ch</A></FONT> <BR><A
href="http://www.iunr.zhaw.ch/geoinformatik"><U><FONT color=#0000ff
face=Arial>www.iunr.zhaw.ch/geoinformatik</FONT></U></A> </P>
<P><FONT face=Arial></FONT> <BR><FONT face=Arial> </FONT>
</P></DIV>_______________________________________________<BR>Users mailing
list<BR><A
href="mailto:Users@openlayers.org">Users@openlayers.org</A><BR>http://openlayers.org/mailman/listinfo/users<BR></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>