map integration in iphone application

Posted by Filthy Night on Stack Overflow See other posts from Stack Overflow or by Filthy Night
Published on 2010-04-06T06:47:20Z Indexed on 2010/04/06 6:53 UTC
Read the original article Hit count: 333

Filed under:
|

Hi Guyz,

i want to integrate maps using map kit in iphone, and i am successful at that, but now the problem which i am facing is

i have 2 locations coordinates, Location1 and Location2, now i want those two points to be shown on map but i want that they appear on the screen both at 1 time, means if they are very far then the zoom level goes to that point and show those two points on the map, if they are near to each other then zoom level shows from that angel (i mean very near).

now i know that using longitude delta and latitude delta i can fix this problem, but i cant find a way to make it dynamic, so that i dont have to hardcode the delta value

Any Help appreciated. Thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about map