]> dev.renevier.net Git - syp.git/blob - openlayers/tests/grid_inittiles.html
move templates to a specific directory
[syp.git] / openlayers / tests / grid_inittiles.html
1 <html xmlns="http://www.w3.org/1999/xhtml">
2   <head>
3     <style type="text/css">
4         #map {
5             width: 800px;
6             height: 475px;
7             border: 1px solid black;
8         }
9     </style>
10     <script src="../lib/OpenLayers.js"></script>
11     <script type="text/javascript">
12         function init(){
13             var map = new OpenLayers.Map('map', {'maxResolution': 1.40625/2, tileSize: new OpenLayers.Size(256,256)});
14             ww = new OpenLayers.Layer.WMS( "Basic", 
15             "http://labs.metacarta.com/wms-c/Basic.py?", 
16             {layers:"basic"});
17             map.addLayers([ww]);
18             map.zoomToMaxExtent();
19             map.zoomIn();
20             map.zoomOut();
21             map.zoomOut();
22         }
23     </script>
24   </head>
25   <body onload="init()">
26     <h1>Grid Test</h1>
27     <p>Map should display with two centered tiles. If there appear to be a combination of two zoom levels, then this test is failed, and something is broken in OpenLayers.</p>
28     <div id="map"></div>
29   </body>
30 </html>