Hi,
I am writing a map manipaulation movie that requires me to have zoom functions. This is turning out to be more difficult than I thought. In its simplest state, all I want to do is zoom into the map and maintain the same central point in my view area.
- I expand the map by some factor, e.g. times 1.1.
- I then need to shift the map’s coordinates by some amount to ensure the central point stays still.
The problem is in calculating this amount. I think the map needs to go up and to the left when zooming in, i.e. the _x and _y values reduce. I originally thought this amount would simply be the _x and _y values times the zoom factor, but this is not right.
Has anyone any ideas or a reference where I might research this problem further.
Thanks