You don't HAVE to use the OpenLayers layer switcher control. You can make your own from scratch using HTML/CSS and then use regular javascript events to change the visible layers of the map. Just a quick example:<br>
<br>
<script type="text/javascript"><br>
var activeLayer = null;<br>
function changeLayer()<br>
{<br>
var layer = map.getLayersByName(this.value)[0];<br>
if(activeLayer != null) {<br>
activeLayer.setVisibility(false);<br>
}<br>
layer.setVisibility(true);<br>
activeLayer = layer;<br>
}<br></script><br><br><select onchange="changeLayer()"><br><option value="layer1">Layer 1</option><br><option value="layer2">Layer 2</option><br><option value="layer3">Layer 3</option><br>
</select><br><br><div class="gmail_quote">On Mon, Nov 28, 2011 at 10:14 AM, Aditya Kumar <span dir="ltr"><<a href="mailto:paglacontact@yahoo.com">paglacontact@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear Users,<br>
I have a very big list of layers so instead of putting them in radio<br>
buttons and making the layer switcher to look ugly I want to put the layer<br>
list in a drop down box.<br>
<br>
<br>
Please help me in doing so!<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Aditya Kumar<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Layers-in-drop-down-tp7039059p7039059.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Layers-in-drop-down-tp7039059p7039059.html</a><br>
Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</font></span></blockquote></div><br>