[Geoserver-users] problem with zoomToScale

Dear all,
the Openlayers function zoomToScale does not exactly zoom to the given scale.
For instance i call map.zoomToScale(125000,false) and the actual scale is 121000.
How can I solve this issue?
Actually I'm using Geoserver 1.7.3 and Openlayers 2.7

Thanks in advance,
Marianna

Marianna Borriello ha scritto:

Dear all,
the Openlayers function zoomToScale does not exactly zoom to the given scale.
For instance i call map.zoomToScale(125000,false) and the actual scale is 121000.
How can I solve this issue?
Actually I'm using Geoserver 1.7.3 and Openlayers 2.7

This is a question for the OpenLayers list.
Anyways, OpenLayers by default uses a discreet set of zoom levels,
and I know it's possible to force it into using specific ones if
you want, but I don't remember how.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.