summaryrefslogtreecommitdiff
path: root/misc/openlayers/tests/grid_inittiles.html
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2014-08-12 21:56:44 +0200
committerChris Schlaeger <chris@linux.com>2014-08-12 21:56:44 +0200
commitea346a785dc1b3f7c156f6fc33da634e1f1a627b (patch)
treeaf67530553d20b6e82ad60fd79593e9c4abf5565 /misc/openlayers/tests/grid_inittiles.html
parent59741cd535c47f25971bf8c32b25da25ceadc6d5 (diff)
downloadpostrunner-ea346a785dc1b3f7c156f6fc33da634e1f1a627b.zip
Adding jquery, flot and openlayers to be included with the GEM.v0.0.4
Diffstat (limited to 'misc/openlayers/tests/grid_inittiles.html')
-rw-r--r--misc/openlayers/tests/grid_inittiles.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/misc/openlayers/tests/grid_inittiles.html b/misc/openlayers/tests/grid_inittiles.html
new file mode 100644
index 0000000..40035a2
--- /dev/null
+++ b/misc/openlayers/tests/grid_inittiles.html
@@ -0,0 +1,30 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <style type="text/css">
+ #map {
+ width: 800px;
+ height: 475px;
+ border: 1px solid black;
+ }
+ </style>
+ <script src="../lib/OpenLayers.js"></script>
+ <script type="text/javascript">
+ function init(){
+ var map = new OpenLayers.Map('map', {'maxResolution': 1.40625/2, tileSize: new OpenLayers.Size(256,256)});
+ ww = new OpenLayers.Layer.WMS( "Basic",
+ "http://labs.metacarta.com/wms-c/Basic.py?",
+ {layers:"basic"});
+ map.addLayers([ww]);
+ map.zoomToMaxExtent();
+ map.zoomIn();
+ map.zoomOut();
+ map.zoomOut();
+ }
+ </script>
+ </head>
+ <body onload="init()">
+ <h1>Grid Test</h1>
+ <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>
+ <div id="map"></div>
+ </body>
+</html>