]> dev.renevier.net Git - syp.git/blob - openlayers/examples/wms-untiled.html
avoid html injection in item title
[syp.git] / openlayers / examples / wms-untiled.html
1 <html xmlns="http://www.w3.org/1999/xhtml">
2   <head>
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">
7         var lon = 5;
8         var lat = 40;
9         var zoom = 5;
10         var map, layer;
11
12         function init(){
13             map = new OpenLayers.Map( 'map' );
14             layer = new OpenLayers.Layer.WMS(
15                 "OpenLayers WMS",
16                 "http://labs.metacarta.com/wms/vmap0",
17                 {layers: 'basic'},
18                 {singleTile: true}
19             );
20             map.addLayer(layer);
21
22             map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
23             map.addControl( new OpenLayers.Control.LayerSwitcher() );
24         }
25     </script>
26   </head>
27   <body onload="init()">
28     <h1 id="title"> WMS Untiled Example</h1>
29
30     <div id="tags">
31     </div>
32         <p id="shortdesc">
33             Shows an example of an "untiled" WMS layer, which requests a single
34             image for the entire map view.
35         </p>
36     <div id="map" class="smallmap"></div>
37         <div id="docs">
38             An untiled layer will only request a single image at a time.
39             This is equivalent to using the deprecated
40             OpenLayers.Layer.WMS.Untiled class, which will be removed at 3.0.
41         </div>
42   </body>
43 </html>
44
45