1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <title>MapServer Single Tile Mode</title>
4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
5 <link rel="stylesheet" href="style.css" type="text/css" />
6 <style type="text/css">
10 border: 1px solid black;
13 <script src="../lib/OpenLayers.js"></script>
14 <script type="text/javascript">
16 window.onload = function(){
17 map = new OpenLayers.Map( 'map', {maxResolution: 'auto'} );
18 var layer = new OpenLayers.Layer.MapServer( "MapServer Untiled",
19 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}, {singleTile: true} );
21 map.setCenter(new OpenLayers.LonLat(0, 0), 1);
22 map.addControl( new OpenLayers.Control.LayerSwitcher() );
27 <div id="title">MapServer Single Tile Mode</div>
29 <div id="shortdesc">Shows single tile MapServer Layer</div>
30 <div id="map" class="smallmap"></div>
32 This shows an example of using a MapServer Layer in single tile mode. Single tile mode can be useful when pulling data from dynamic sources.