Project

General

Profile

1 3032 perry
<html xmlns="http://www.w3.org/1999/xhtml">
2
  <head>
3
    <style type="text/css">
4
        #map {
5
            width: 700px;
6
            height: 512px;
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 map = new OpenLayers.Map('map', {'maxResolution': 1.40625/4, controls:[]});
15
16
            var ka_wms = new OpenLayers.Layer.KaMap( "TIGER (KaMap)",
17
                "http://boston.freemap.in/tile.php" , { map: 'tiger', layers: 'TIGER' });
18
            var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
19
                "http://wms.jpl.nasa.gov/wms.cgi",
20
                {layers: "modis,global_mosaic"});
21
            jpl_wms.setVisibility(false);
22
            ka_wms.isBaseLayer = false;
23
            map.addLayers([jpl_wms,ka_wms]);
24
            map.addControl(new OpenLayers.Control.LayerSwitcher());
25
            map.addControl(new OpenLayers.Control.MouseToolbar());
26
            map.addControl(new OpenLayers.Control.PanZoomBar());
27
            map.setCenter(new OpenLayers.LonLat(-96, 35), 2);
28
        }
29
        // -->
30
    </script>
31
  </head>
32
  <body onload="init()">
33
    <h1>OpenLayers Example</h1>
34
    <div id="map"></div>
35
  </body>
36
</html>