diff options
author | Chris Schlaeger <chris@linux.com> | 2014-08-12 21:56:44 +0200 |
---|---|---|
committer | Chris Schlaeger <chris@linux.com> | 2014-08-12 21:56:44 +0200 |
commit | ea346a785dc1b3f7c156f6fc33da634e1f1a627b (patch) | |
tree | af67530553d20b6e82ad60fd79593e9c4abf5565 /misc/openlayers/tests/manual/box-strict.html | |
parent | 59741cd535c47f25971bf8c32b25da25ceadc6d5 (diff) | |
download | postrunner-ea346a785dc1b3f7c156f6fc33da634e1f1a627b.zip |
Adding jquery, flot and openlayers to be included with the GEM.v0.0.4
Diffstat (limited to 'misc/openlayers/tests/manual/box-strict.html')
-rw-r--r-- | misc/openlayers/tests/manual/box-strict.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/misc/openlayers/tests/manual/box-strict.html b/misc/openlayers/tests/manual/box-strict.html new file mode 100644 index 0000000..5b38ea5 --- /dev/null +++ b/misc/openlayers/tests/manual/box-strict.html @@ -0,0 +1,46 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" + "http://www.w3.org/TR/html4/loose.dtd"> +<html> + <head> + <title>Box Handler Strict Mode Test</title> + <link rel="stylesheet" href="../../theme/default/style.css" type="text/css" /> + <link rel="stylesheet" href="../../examples/style.css" type="text/css" /> + <style type="text/css"> + .olHandlerBoxZoomBox { + border: 20px solid red; + border-left-width: 10px; + border-bottom-width: 30px; + } + </style> + <script src="../../lib/OpenLayers.js"></script> + <script type="text/javascript"> + var map, layer; + function init(){ + map = new OpenLayers.Map( 'map' ); + layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", + "http://vmap0.tiles.osgeo.org/wms/vmap0", + {layers: 'basic'} ); + map.addLayer(layer); + map.zoomToMaxExtent(); + } + </script> + </head> + <body onload="init()"> + <h1 id="title">Box Handler Strict Mode Test</h1> + + <div id="shortdesc">Test the correct appearance of the ZoomBox in strict mode</div> + + <div id="map" class="smallmap"></div> + + <div id="docs"> + <p>For the box to be positioned correctly, we need to know the + width of the borders.</p> + <p>Shift-click on the map. A red box should be visible around the mouse + cursor position, with 20 pixels to the top and right, 10 pixels to + the left and 30 pixels to the bottom edge of the box.</p> + <p>Drag the box both to the top-left and the bottom-right. The cursor + should always be at the top-left or bottom-right inner corner of + the box.</p> + </div> + </body> +</html> |