Hi,<br>it looks like a bug : when i set the map's active baseLayer to a worldwind layer, i'm loosing the layerSwitcher control.<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> "<a href="http://labs.metacarta.com/wms/vmap0">http://labs.metacarta.com/wms/vmap0</a>", {layers: 'basic'} );</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> ww2 = new OpenLayers.Layer.WorldWind( "LANDSAT",</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> "<a href="http://worldwind25.arc.nasa.gov/tile/tile.aspx">http://worldwind25.arc.nasa.gov/tile/tile.aspx</a>", 2.25, 4,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {T:"105"});</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> map.addLayers([layer, ww2]);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> map.zoomToExtent(new OpenLayers.Bounds(7,24,10,26));</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> map.setBaseLayer(ww2);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> map.addControl(new OpenLayers.Control.LayerSwitcher());</span><br style="font-family: courier new,monospace;"><br>Correction : it is a minor bug, then, since if i declare
map.setBaseLayer(ww2); after adding the layerswitcher control, it works
fine...<br>... but it definitely looks like a bug... ;o)<br>Jean<br>