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