Hi
I have a UIView with a world map. This is added to a parent UIView, this parent UIView also has two markers build from UIViews. The markers are placed in the center of two arbitrary countries.
Now I find the midpoint between these two markers moves the world map view so that this midpoint is at the center of the screen, I then continue to scale the map so that the rectangle that just encloses the two markers fills out the screen.
Now my question is: how do I find the "new" coordinates for the markers so they appear to not have moved? i.e. they are still situated over the center of the two countries, but the countries have moved and been scaled
If I was to just move the map by some offset, I could apply this offset to my markers, but when I also apply scale to the map, but not the markers, I loose track of my waypoints.
Hope someone can school me in this little piece of geometry or maybe some built in Cocoa magic?
Thank you.