[OpenLayers-Users] Openlayers 2.6 - zoomLevels.html
Christopher Schmidt
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
>
> FROM:
>
> var levels = Math.floor((y - top)/this.zoomStopHeight);
>
> TO:
>
> 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.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list