Project

General

Profile

1
<html xmlns="http://www.w3.org/1999/xhtml">
2
  <head>
3
    <style type="text/css">
4
        #map {
5
            width: 800px;
6
            height: 475px;
7
            border: 1px solid black;
8
        }
9
    </style>
10
    <script src="../lib/OpenLayers.js"></script>
11
    <script type="text/javascript">
12
        <!--
13
        function init(){
14
            var mapOptions = { maxResolution: 1.6, numZoomLevels: 21};
15
            var map = new OpenLayers.Map('map', mapOptions);
16
            
17
            var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", 
18
                "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} );
19

    
20
            var ww = new OpenLayers.Layer.WorldWind( "Urban", 
21
                "http://worldwind25.arc.nasa.gov/tile/tile.aspx?", .8, 9,
22
                {T:"104"}, { tileSize: new OpenLayers.Size(512,512) });
23

    
24

    
25
            map.addLayers([ol_wms, ww]);
26
            map.addControl(new OpenLayers.Control.LayerSwitcher());
27
            map.setCenter(new OpenLayers.LonLat(-71.4, 42.3), 6);
28
        }
29
        // -->
30
    </script>
31
  </head>
32
  <body onload="init()">
33
    <h1>OpenLayers Example</h1>
34
    <div id="map"></div>
35
  </body>
36
</html>
(27-27/35)