1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <title>MapServer Layer</title>
4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
5 <link rel="stylesheet" href="style.css" type="text/css" />
6 <script src="../lib/OpenLayers.js"></script>
7 <script type="text/javascript">
14 map = new OpenLayers.Map( 'map' );
15 layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS",
16 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'},
20 map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
21 map.addControl( new OpenLayers.Control.LayerSwitcher() );
26 <body onload="init()">
27 <div id="title">MapServer Layer</div>
29 <div id="shortdesc">Shows MapServer Layer</div>
30 <div id="map" class="smallmap"></div>
32 This is an example of using a MapServer Layer with a gutter parameter. The gutter parameter is used to try to limit the edge effects between tiles.