Project

General

Profile

1
<html xmlns="http://www.w3.org/1999/xhtml">
2
  <head>
3
    <meta http-equiv="imagetoolbar" content="no"> <!--ie image gizmo OFF!-->
4
    <style type="text/css">
5
        #map {
6
            width: 800px;
7
            height: 475px;
8
            border: 1px solid black;
9
        }
10
    </style>
11
    <script src="../lib/OpenLayers.js"></script>
12
    <script type="text/javascript">
13
        <!--
14
        var lon = 5;
15
        var lat = 40;
16
        var zoom = 5;
17
        var map, layer;
18

    
19
        function init(){
20
            map = new OpenLayers.Map( $('map') );
21
            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", 
22
                    "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
23
            map.addLayer(layer);
24

    
25
            map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
26
            map.addControl( new OpenLayers.Control.LayerSwitcher() );
27
        }
28
        
29
        // -->
30
    </script>
31
  </head>
32
  <body onload="init()">
33
    <div id="map"></div>
34
  </body>
35
</html>
(30-30/35)