<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hanno,<div><br></div><div>the constructor takes 1 argument, so use:</div><div><br></div><div>n<span class="Apple-style-span" style="font-family: Tahoma; font-size: small; ">ew OpenLayers.Control.LayerSwitcher({'div':OpenLayers.Util.getElement('mapSwitcher'), roundedCorner:false});</span></div><div><font class="Apple-style-span" face="Tahoma"><span class="Apple-style-span" style="font-size: small;"><br></span></font></div><div><font class="Apple-style-span" face="Tahoma"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; "><div>Best regards,</div><div>Bart</div></span></span></font></div><div><br><div><div>On Feb 25, 2010, at 9:32 AM, Rahn Hanno (rahn) wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div 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>&nbsp;</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>&nbsp;</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}));</span></font></div></div></blockquote><blockquote type="cite"><div style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<div dir="ltr" align="left"><font size="2" face="Tahoma"><span class="042592608-25022010">//make the background not transparent and 
gray</span></font></div><font size="2" face="Tahoma"></font>
<div dir="ltr" align="left"><font size="2" face="Tahoma"><span class="042592608-25022010">&nbsp;&nbsp;&nbsp;if (navigator.appName == 'Microsoft 
Internet Explorer') 
{<br>&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById('OpenLayers.Control.LayerSwitcher_32_layersDiv').style.filter 
="alpha(opacity = 100)";<br>&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;if 
(navigator.appName == 'Netscape') 
{<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById('OpenLayers.Control.LayerSwitcher_32_layersDiv').style.opacity 
="1";<br>&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;document.getElementById('OpenLayers.Control.LayerSwitcher_32_layersDiv').style.backgroundColor="#e9e9e4";</span></font><font size="2" face="Tahoma"><span class="042592608-25022010"></span></font></div><font size="2" face="Tahoma"></font>
<div><font color="#0000ff" size="2" face="Arial"></font>&nbsp;</div>
<div dir="ltr" align="left"><font size="2" face="Tahoma"><span class="042592608-25022010"><font face="Arial">// to&nbsp;place the layerswitcher 
div</font>&nbsp;&nbsp;</span></font></div>
<div dir="ltr" align="left"><font size="2" face="Tahoma"><span class="042592608-25022010">&nbsp;OpenLayers.Util.getElement('mapSwitcher').style.width 

"200";<br>&nbsp;&nbsp;&nbsp;OpenLayers.Util.getElement('mapSwitcher').style.color 

"black";<br>&nbsp;&nbsp;&nbsp;OpenLayers.Util.getElement('mapSwitcher').style.position 

"absolute";<br>&nbsp;&nbsp;&nbsp;OpenLayers.Util.getElement('mapSwitcher').style.top 

"400";<br>&nbsp;&nbsp;&nbsp;OpenLayers.Util.getElement('mapSwitcher').style.left 
= "5";</span></font></div>
<div><font color="#0000ff" size="2" face="Arial"></font>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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"><a href="mailto:hanno.rahn@zhaw.ch">hanno.rahn@zhaw.ch</a></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">&nbsp;</font></span> </p>
<div>&nbsp;</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> 
<a href="mailto:users@openlayers.org">users@openlayers.org</a><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>&nbsp;&nbsp; &nbsp;/**</div>
<div>&nbsp;&nbsp; &nbsp; * APIProperty: roundedCorner</div>
<div>&nbsp;&nbsp; &nbsp; * {Boolean} If true the Rico library is used for 
rounding the corners</div>
<div>&nbsp;&nbsp; &nbsp; * &nbsp; &nbsp; of the layer switcher div, defaults to 
true.</div>
<div>&nbsp;&nbsp; &nbsp; */</div>
<div>&nbsp;&nbsp; &nbsp;roundedCorner: true,</div>
<div><br></div>
<div>&nbsp;&nbsp; &nbsp;/**</div>
<div>&nbsp;&nbsp; &nbsp; * APIProperty: roundedCornerColor</div>
<div>&nbsp;&nbsp; &nbsp; * {String} The color of the rounded corners, only 
applies if roundedCorner</div>
<div>&nbsp;&nbsp; &nbsp; * &nbsp; &nbsp; is true, defaults to "darkblue".</div>
<div>&nbsp;&nbsp; &nbsp; */</div>
<div>&nbsp;&nbsp; &nbsp;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">&nbsp;</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">&nbsp;</font> 
  </p></div>_______________________________________________<br>Users mailing 
  list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br></blockquote></div><br></div></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>