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 then 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?

1 Answer 1


From: http://trac.osgeo.org/openlayers/wiki/SelectFeatureControlMapDragIssues

try setting stopDown = false on the SelectFeature.

That is,

selectFeatureControl.handlers.feature.stopDown = false; // for OL2.7


selectFeatureControl.handler.stopDown = false; // for OL < 2.7
selectFeatureControl.handler.stopUp = false;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.