views:

34

answers:

1

Hi,

I have a MKMapView with several annotations. These annotations differ from varios location all over Sweden. What I want to do is to zoom the map so all annotations show.

I do not want to position the map to my position (although I do want to show it), but want all annotations to show and center the map according those locations.

I.e. if one annotation would be "kiruna" (upper left sweden) and the otherone would be "stockholm" (middle right sweden), I want the map to show both. If the map would only show "uppsala" (above stockholm) and "stockholm", I want the map zo zoom that "uppsala" is in the top left and "stockholm" bottom middle/right.

How can I do this? I have the lat/lon positions ofcouce for every location.

Regards,
Paul Peelen

A: 

Dupe with plenty of material to solve your problem: http://stackoverflow.com/questions/1336370/positioning-mkmapview-to-show-multiple-annotations-at-once

Nick
My bad, didn't find it. Thnx!
Paul Peelen
No problem glad something there could help.
Nick