[OpenLayers-Users] Openlayers 2.6 - zoomLevels.html
crschmidt at metacarta.com
Thu Apr 3 12:04:01 EDT 2008
On Thu, Apr 03, 2008 at 09:39:23AM -0600, Linda Rawson wrote:
> I found the problem. Somebody changed this line in PanZoomBar.js
> var levels = Math.floor((y - top)/this.zoomStopHeight);
> var levels = (y - top)/this.zoomStopHeight;
> This is causing the problem.
Math.floor is called (if your map doesn't have fractionalZoom) two lines
later, on the zoom. Can you explain why this is a problem in your setup?
A more complete HTML example with the behavior you expect and the
behavior you're getting would be helpful.
More information about the Users