git-svn-id: http://svn.openlayers.org/trunk/openlayers@9805 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>OpenLayers Document Drag Example</title>
|
|
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
|
|
<link rel="stylesheet" href="style.css" type="text/css" />
|
|
<script src="../lib/OpenLayers.js"></script>
|
|
<script type="text/javascript">
|
|
var map, layer;
|
|
function init(){
|
|
map = new OpenLayers.Map( 'map', {controls: [
|
|
new OpenLayers.Control.Navigation({documentDrag: true}),
|
|
new OpenLayers.Control.PanZoom(),
|
|
new OpenLayers.Control.ArgParser(),
|
|
new OpenLayers.Control.Attribution()
|
|
]} );
|
|
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
|
|
"http://labs.metacarta.com/wms/vmap0",
|
|
{layers: 'basic'} );
|
|
map.addLayer(layer);
|
|
map.zoomToMaxExtent();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="init()">
|
|
<h1 id="title">OpenLayers Document Drag Example</h1>
|
|
|
|
<div id="tags"></div>
|
|
|
|
<div id="shortdesc">Keep on dragging even when the mouse cursor moves outside of the map</div>
|
|
|
|
<div id="map" class="smallmap"></div>
|
|
|
|
<div id="docs">
|
|
This example shows how to make a map draggable outside of the map itself.
|
|
</div>
|
|
</body>
|
|
</html> |