diff --git a/examples/yahoo.html b/examples/yahoo.html index 2bdcd8ed61..f39206b2f1 100644 --- a/examples/yahoo.html +++ b/examples/yahoo.html @@ -15,15 +15,15 @@ function init(){ map = new OpenLayers.Map('map'); + yahooLayer = new OpenLayers.Layer.Yahoo( "Yahoo"); + + map.addLayer(yahooLayer); + layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); map.addLayer(layer); - yahooLayer = new OpenLayers.Layer.Yahoo( "Yahoo"); - - map.addLayer(yahooLayer); - map.setCenter(new OpenLayers.LonLat(-5, 40), 4); map.addControl(new OpenLayers.Control.LayerSwitcher()); }