Exposing the documentDrag property on the Navigation control. r=ahocevar (closes #39)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9805 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2009-11-18 05:42:17 +00:00
parent 081ce883fb
commit d9a982f169
3 changed files with 39 additions and 4 deletions

View File

@@ -8,9 +8,7 @@
var map, layer;
function init(){
map = new OpenLayers.Map( 'map', {controls: [
new OpenLayers.Control.Navigation(
{dragPanOptions: {documentDrag: true}}
),
new OpenLayers.Control.Navigation({documentDrag: true}),
new OpenLayers.Control.PanZoom(),
new OpenLayers.Control.ArgParser(),
new OpenLayers.Control.Attribution()