[OpenLayers-Trac] [OpenLayers] #1250: zoomToScale broken when using fixed scales array.
OpenLayers
trac at openlayers.org
Mon Jan 7 06:26:02 EST 2008
#1250: zoomToScale broken when using fixed scales array.
-------------------------+--------------------------------------------------
Reporter: openlayers | Owner:
Type: bug | Status: new
Priority: minor | Milestone:
Component: Map | Version: 2.5
Keywords: ZoomToScale | State:
-------------------------+--------------------------------------------------
I am using a scales array in my map.
scales: [1000000, 633600, 500000, 253440, 250000,126720, 100000, 63360,
50000, 25000,10560,12500,10000,5000,2500,1250,1000,500,250]
When I set the scale to say 250 using map.zoomToScale(scaleValue). The map
should change to 250 instead it changes to 500. I can understand if i used
251 it would go to 500 but not if i used the exact value it should go to
that value. I have tried this in version 2.4 and it works. Looks like this
is broken in 2.5
My email address is Nojmul.Alom at severntrent.co.uk
--
Ticket URL: <http://trac.openlayers.org/ticket/1250>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list