title: Cant get current location (GPS) on google maps ios sdk
body: <p>My goal is to move the camera a user's current location, but for somehow it keeps showing the general map, I have tried many things but seems like it wont move to the user's current location</p>
  
  <p>Screenshot</p>
  
  <p><a href="https://i.stack.imgur.com/3TiRn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3TiRn.png" alt="enter image description here"></a></p>
  
  <p>Current code</p>
  
  <pre><code>import UIKit
  import GoogleMaps
  
  
  class ParcelViewController: UIViewController, GMSMapViewDelegate {
  
  
      @IBOutlet var mapView: GMSMapView!
  
      let locationManager = CLLocationManager()
  
      override func viewDidLoad() {
          super.viewDidLoad()
          locationManager.delegate = self
          locationManager.requestWhenInUseAuthorization()
          mapView.delegate = self
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
  
  }
  
  
  // Mark: -CLLocationManagerDelegate
  extension ParcelViewController: CLLocationManagerDelegate {
  
      func locationManager(manager: CLLocationManager, didChangeAuthorizationStatus status: CLAuthorizationStatus) {
          if status == .AuthorizedWhenInUse {
              locationManager.startUpdatingLocation()
  
              mapView.myLocationEnabled = true
              mapView.settings.myLocationButton = true
          }
      }
  
      func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
          if let location = locations.first {
              mapView.camera = GMSCameraPosition(target: location.coordinate, zoom: 15, bearing: 0, viewingAngle: 0)
  
              locationManager.stopUpdatingLocation()
  
          }
      }
  }
  </code></pre>