1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <title>OpenLayers: Yahoo Layer</title>
4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
5 <link rel="stylesheet" href="style.css" type="text/css" />
6 <script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=euzuro-openlayers"></script>
7 <script src="../lib/OpenLayers.js"></script>
8 <script type="text/javascript">
9 var map, layer, velayer;
12 map = new OpenLayers.Map('map');
14 yahooLayer = new OpenLayers.Layer.Yahoo( "Yahoo");
16 map.addLayer(yahooLayer);
18 layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
19 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
22 map.setCenter(new OpenLayers.LonLat(-5, 40), 4);
23 map.addControl(new OpenLayers.Control.LayerSwitcher());
27 <body onload="init()">
28 <h1 id="title">Yahoo Base Layer Example</h1>
34 Shows how you would add a yahoo layer and add the LayerSwitcher control
37 <div id="map" class="smallmap"></div>
40 This is an example of how to add a yahoo layer to the OpenLayers window. In order to enable a
41 yahoo layer. Also shown in this example is the LayerSwitcher() control for toggling between both the yahoo layer and