How to convert latitude and longitude to x,y coordinates - iphone?
Posted on 2011-05-12
I have a map in image format (.png file). I need to point Pins on the map based on the places latitude and longitude information.
If the coordinates are in X, Y instead of latitude and longitude, then I can point easily.
How do I convert the given lat and long to x, y coordinates? My map has different zoom level. For each zoom level, there is a separate map.
For example, I have the Bangalore map, I want to point Jayanagar on the map. I know the lat and long of Jayanagar. In addition to that, Bangalore map has 3 zoom levels. How can I convert the lat and long coordinates to x and y coordinates so that I can point Jayanagar on the map? The point should be visible in all the zoom levels.