[OpenLayers-Users] setBaseLayer bug with WorldWind layer ?
Jean Pommier (IGE)
jean.pommier at ige.fr
Mon Feb 4 11:50:30 EST 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080204/9d13be23/attachment.html
More information about the Users
mailing list