title: Controlling Animation Duration in Google Maps for iOS
body: <p>The documentation for Google Maps for iOS states that:</p>
  
  <blockquote>
    <p>Call one of several methods that allow you to animate the camera moving to a new location. You can control the duration of the animation with CoreAnimation.</p>
  </blockquote>
  
  <p>For the life of me, I can't figure out how to control the animation duration.  I have tried using UIView animations, like:</p>
  
  <pre><code>    [UIView animateWithDuration: 5 animations:^{
           GMSCameraPosition *camera = [self newCamera];
          self.mapView.camera = camera;
      } completion:^(BOOL finished) {
      }];
  </code></pre>
  
  <p>And I have looked at CALayer animations in CoreAnimation.  However, I don't know how you would apply a layer animation to the map view.</p>
  
  <p>Can someone point me in the right direction please?</p>