Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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'.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2102309-openlayers-drag-to-pan.patch | 1.91 KB | ohthehugemanatee |
Comments
Comment #1
ohthehugemanatee CreditAttribution: ohthehugemanatee commentedwhoops, forgot to attach the patch. Patched based on 2.x head
Comment #3
PolThanks, good catch !
Committed.
Comment #5
loffel CreditAttribution: loffel commentedit works, thanks a lot!!!