1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
4 <link rel="stylesheet" href="style.css" type="text/css" />
5 <script src="../lib/OpenLayers.js"></script>
6 <script type="text/javascript">
13 map = new OpenLayers.Map( 'map' );
14 layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
15 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
18 map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
19 map.addControl( new OpenLayers.Control.LayerSwitcher() );
23 <body onload="init()">
24 <h1 id="title">WMS Example</h1>
29 Shows the basic use of openlayers using a WMS layer
32 <div id="map" class="smallmap"></div>
35 This is an example of how to add an WMS layer to the OpenLayers window. The images are tiled in this instance if you wanted to not use a tiled WMS
36 please use this example and pass the option
\91singleTile
\92 as true.