]> dev.renevier.net Git - syp.git/blob - openlayers/examples/yahoo.html
add some margin around image
[syp.git] / openlayers / examples / yahoo.html
1 <html xmlns="http://www.w3.org/1999/xhtml">
2   <head>
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;
10
11         function init(){
12             map = new OpenLayers.Map('map');
13
14             yahooLayer = new OpenLayers.Layer.Yahoo( "Yahoo");
15
16             map.addLayer(yahooLayer);
17
18             layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
19                 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
20             map.addLayer(layer);
21
22             map.setCenter(new OpenLayers.LonLat(-5, 40), 4);
23             map.addControl(new OpenLayers.Control.LayerSwitcher());
24         }
25     </script>
26   </head>
27   <body onload="init()">
28     <h1 id="title">Yahoo Base Layer Example</h1>
29
30         <div id="tags">
31         </div>
32
33         <p id="shortdesc">
34             Shows how you would add a yahoo layer and add the LayerSwitcher control
35         </p>
36
37         <div id="map" class="smallmap"></div>
38
39         <div id="docs">
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
42             the open layer WMS.
43         </div>
44
45   </body>
46 </html>