Thursday 27 October 2011

How to set the zoomlevel of MKMapView


    MKCoordinateRegion region;
    region.center=newLocation.coordinate;   // location
    MKCoordinateSpan span;
    span.latitudeDelta=120;               //  0.001 to 120
    span.longitudeDelta=120;
    region.span=span;
    [self.mapView setRegion:region animated:YES];   

2 comments: