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.
Sometimes you cannot zoom in on a map until you zoom out first.
Sometimes you cannot zoom in on a map until you zoom out first.
Comments
Comment #1
phayes CreditAttribution: phayes commentedIn situations where this bug exists, using the wheel mouse to zoom also does not work.
Comment #2
phayes CreditAttribution: phayes commentedThis bug occurs when the default base layer is at the top of the layer list (also where there is only one baselayer)
Comment #3
phayes CreditAttribution: phayes commentedLine 131, opelayers.js - if we removed reference to the zoom level, this bug does not occur. So somehow by setting the zoom level programatically, we are creating this bug.
Comment #4
phayes CreditAttribution: phayes commentedThis is a bug in openlayers. I opened a ticket at: http://trac.openlayers.org/ticket/2180
We can get around it by converting to integer before invoking setCenter.