The default navigation behavior works fine to click and drag to pan the map around.

But if you have a vector layer displayed, and one of popups, hover, or tooltips enabled... if you happen to click inside one of the vector shapes, click and drag won't work.

attaching a patch to fix the problem. When we create a new OpenLayers.Control.SelectFeature, we have to manually set .handlers['feature'].stopDown and .handlers['feature'].stopUp to 'FALSE'.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ohthehugemanatee’s picture

whoops, forgot to attach the patch. Patched based on 2.x head

Status: Needs review » Needs work

The last submitted patch, 2102309-openlayers-drag-to-pan.patch, failed testing.

Pol’s picture

Status: Needs work » Fixed

Thanks, good catch !

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

loffel’s picture

Issue summary: View changes

it works, thanks a lot!!!