title: Setting the zoom level in MapKit Xcode
body: <p>How can I set the zoom level of my Google MapKit in SDK? Like for example, I live in New York, and I've set up 4 coordinate positions in my ProjectName-info.plist (URL Types > Item 0 > URL Schemes > Item 0), then I've set up my code in my UIViewController subclass file:</p>
  
  <pre><code>#import "GoogleMap.h"
  #import "MyAnnotation.h"
  
  @implementation GoogleMap
  
          - (void)viewDidLoad {
          [super viewDidLoad];
  
          variable1 = [[NSArray alloc] initWithContentsOfFile:[[NSBundle mainBundle] 
                                                               pathForResource:@"NewYorkAreas" 
                                                               ofType:@"plist"]];
  
          double minLat = [[variable1 valueForKeyPath:@"@min.latitude"] doubleValue];
          double maxLat = [[variable1 valueForKeyPath:@"@max.latitude"] doubleValue];
          double minLon = [[variable1 valueForKeyPath:@"@min.longitude"] doubleValue];
          double maxLon = [[variable1 valueForKeyPath:@"@max.longitude"] doubleValue];
  
          MKCoordinateRegion region;
          region.center.latitude = (maxLat + minLat) / 2.0;
          region.center.longitude = (maxLon + minLon) / 2.0;
          region.span.latitudeDelta = (maxLat - minLat) * 1.05;
          region.span.longitudeDelta = (maxLon - minLon) * 1.05;
          map.region = region;
  
          for (NSDictionary *newYorkAreasDict in variable1){
              MyAnnotation *annotation = [[MyAnnotation alloc] initWithDictionary:newYorkAreasDict];
              [map addAnnotation:annotation];
              [annotation release];
          }
      }
  
      - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id &lt;MKAnnotation&gt;)annotation{
  
          if (map.userLocation == annotation){
              return nil;
          }
  
          NSString *identifier = @"MY_IDENTIFIER";
  
          MKAnnotationView *annotationView = [map dequeueReusableAnnotationViewWithIdentifier:identifier];
          if (annotationView == nil){
              annotationView = [[[MKAnnotationView alloc] initWithAnnotation:annotation 
                                                             reuseIdentifier:identifier] 
                                autorelease];
              annotationView.image = [UIImage imageNamed:@"logo.png"];
              annotationView.canShowCallout = YES;
  
              annotationView.rightCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
          }
          return annotationView;
      }
  </code></pre>
  
  <p>So this is all I have for now in my code, which works perfectly when I run and debug the app, and shows me the location of all 4 areas that I set in a good zooming level, but now I want only 1 area to set, so when I erased the other 3 area and when running it and only giving me one area, the zooming level seems very close to the map:</p>
  
  <p><img src="https://i.stack.imgur.com/qxaCd.png" alt="enter image description here"></p>
  
  <p>So I when the code is fixed (assuming someone helped me fix the code for the zooming level), the next time I run it, when I click on "Find us on Google Map", my Google Map opening page zoom level should look like this:
  <img src="https://i.stack.imgur.com/ir4B9.png" alt="enter image description here"></p>
  
  <p>So yea hopefully someone can help me fix this zooming level when I begin opening Google Map, thanks!</p>
  
  <p>(About the New York variable names, forget it, I don't live in New York lol)</p>