OpenLayers OpenLayers

root/branches/openlayers/2.5/tests/grid_inittiles.html

Revision 2978, 1.0 kB (checked in by sderle, 2 years ago)

propset svn:eol-style native recursively throughout trunk. enjoy\!

  • Property svn:eol-style set to native
Line 
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         <!--
13         function init(){
14             var map = new OpenLayers.Map('map', {'maxResolution': 1.40625/2, tileSize: new OpenLayers.Size(256,256)});
15             ww = new OpenLayers.Layer.WMS( "Basic",
16             "http://labs.metacarta.com/wms-c/Basic.py?",
17             {layers:"basic"});
18             map.addLayers([ww]);
19             map.zoomToMaxExtent();
20             map.zoomIn();
21             map.zoomOut();
22             map.zoomOut();
23         }
24         // -->
25     </script>
26   </head>
27   <body onload="init()">
28     <h1>Grid Test</h1>
29     <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>
30     <div id="map"></div>
31   </body>
32 </html>
Note: See TracBrowser for help on using the browser.