Hi about using KeyboardDefaults? var mapoptions = { maxExtent: new OpenLayers.Bounds(773500, 4555450, 2602100, 6384050), scales: [16000000, 8000000, 3000000, 1000000, 750000, 500000, 250000, 100000, 75000, 50000, 35000, 25000, 20000, 15000, 10000, 7500, 5000, 2500, 1000, 500], units: 'm', projection: "EPSG:" + mapsrs, numZoomLevels: 20, fractionalZoom: false, allOverlays: false, theme: null, controls: [ new OpenLayers.Control.Navigation(), new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Attribution(), new OpenLayers.Control.ScaleLine(), new OpenLayers.Control.Scale(), new OpenLayers.Control.KeyboardDefaults() ] }; map = new OpenLayers.Map(mapoptions);
-----Original Message----- From: openlayers-users-boun...@lists.osgeo.org [mailto:openlayers-users-boun...@lists.osgeo.org] On Behalf Of joaorodr84 Sent: Tuesday, 19 May 2015 12:37 p.m. To: openlayers-users@lists.osgeo.org Subject: [OpenLayers-Users] How to make OpenLayers.Control.DragPan persist? I want to use controls like DrawFeature and SelectFeature, but while these controls are active, I want to have a way to drag the map, using DragPan control. For example, I am selecting features. I select the first, the I would have to pan the map in order to select the 2nd feature (not unselecting the 1st one). Is it possible to make DragPan work as some kind of background control, that would always be active, even when using other controls? Thanks -- View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-make-OpenLayers-Control-DragPan-persist-tp5206311.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users