Hi,
it looks like a bug : when i set the map's active baseLayer to a worldwind
layer, i'm loosing the layerSwitcher control.
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}
);
ww2 = new OpenLayers.Layer.WorldWind( "LANDSAT",
"http://worldwind25.arc.nasa.gov/tile/tile.aspx", 2.25, 4,
{T:"105"});
map.addLayers([layer, ww2]);
map.zoomToExtent(new OpenLayers.Bounds(7,24,10,26));
map.setBaseLayer(ww2);
map.addControl(new OpenLayers.Control.LayerSwitcher());
Correction : it is a minor bug, then, since if i declare map.setBaseLayer(ww2);
after adding the layerswitcher control, it works fine...
... but it definitely looks like a bug... ;o)
Jean
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users