title: Taking a screenshot of MKMapView
body: <p>I'm trying to get a screenshot of a MKMapView.</p>
  
  <p>and I'm using the following code:</p>
  
  <pre><code>UIGraphicsBeginImageContext(myMapView.frame.size);
  
  [myMapView.layer renderInContext:UIGraphicsGetCurrentContext()];
  UIImage *screenShot=UIGraphicsGetImageFromCurrentImageContext();
  UIGraphicsEndImageContext();
  
  return screenShot;
  </code></pre>
  
  <p>And I'm getting and almost blank image with the map current location icon and a Google logo in it.</p>
  
  <p>What could be causing that?</p>
  
  <p>I should tell you that myMapView is actually on another viewController's view but since I'm getting the blue spot showing the location and the google logo I assume the reference I have is the correct one.</p>
  
  <p>Thank you.</p>