]> dev.renevier.net Git - syp.git/blob - openlayers/examples/urban.html
reset openlayers directory to its original state at the end of build.sh
[syp.git] / openlayers / examples / urban.html
1 <html xmlns="http://www.w3.org/1999/xhtml">
2   <head>
3       <title>OpenLayers WorldWind Example</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="../lib/OpenLayers.js"></script>
7     <script type="text/javascript">
8         var map;
9         function init(){
10             var mapOptions = { maxResolution: 1.6, numZoomLevels: 21};
11             map = new OpenLayers.Map('map', mapOptions);
12
13             var ww = new OpenLayers.Layer.WorldWind( "Urban",
14                 "http://worldwind25.arc.nasa.gov/tile/tile.aspx?", .8, 9,
15                 {T:"104"}, { tileSize: new OpenLayers.Size(512,512) });
16
17
18             map.addLayers([ww]);
19             map.addControl(new OpenLayers.Control.LayerSwitcher());
20             map.setCenter(new OpenLayers.LonLat(-71.446875, 41.73515625), 15);
21         }
22     </script>
23   </head>
24   <body onload="init()">
25     <h1 id="title">WorldWind Example</h1>
26
27     <div id="tags"></div>
28
29     <p id="shortdesc">
30         Demonstrate the use of a NASA WorldWind base layer.
31     </p>
32
33     <div id="map" class="smallmap"></div>
34
35     <div id="docs">
36         <p>
37         Add the Nasa WorldWind "Urban" layer to your map. The "Urban" layer contains aerial imagery for urban areas only.
38         </p>
39         <p>
40           You can do it with a ...
41         </p>
42
43     </div>
44   </body>
45 </html>