stepless zoom
I am trying to build a customized zoomify-viewer application with modestmaps. (the original zoomifyViewer is not open source) for that reason I need a zoom that has very fine zoom steps that are much smaller than the default zoom-levels. actually, when I move the zoom slider (the standard one in the as3 repository) I can already see the image zooming in realtime but it will then it would snap to the next integer zoom level and not stay in the position. is there a possibilty to make the zoom stepless or the zoom steps much smaller? I tried to change the zoomDelta in the zoomByAbout function(map.as) for example from 1 to 0.1 and from -1 to -0.1 , but no success. I guess the value is later still rounded to the next integer. where is the right place to make this modification? thanks Dennis
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Hi - the short answer is that Map and TweenMap should always round the zoom but that the underlying TileGrid class should not.
So for a zoomify viewer, you might have better luck using the TileGrid class alone. Also, that means you won't have to worry about geographic Locations and can think about tile Coordinates instead. TileGrid exposes both zoomLevel and scale and you should be able to set them both to arbitrary values. The interface might not be so clean when setting positions, but if you look at how Map uses TileGrid you should get the idea.
Note that TileGrid has several options that control how it rounds the position of tiles. If you're using non-integer zoom levels you might see artefacts to do with those values. Let me know if you do and I'll try to explain the reasoning behind each one – perhaps there's a better way :)
The ZoomSlider is just an example, you should feel free to modify it to disable the rounding. This is done by a TweenLite call on mouse up, it should be easy to find. -
Inappropriate?yes actually disabling the rounding did it. thank you
Loading Profile...



EMPLOYEE