title: Google Maps Mapview not centering on marker
body: <p>I am using google maps in ios with swift 4, i have to show a mapview in the screen, with a marker, the problem is that whenever i show the mapview i got this result:</p>
  
  <p><a href="https://i.stack.imgur.com/qRube.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qRube.png" alt="enter image description here"></a></p>
  
  <p>and the result i want to get is this:</p>
  
  <p><a href="https://i.stack.imgur.com/gpIU6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gpIU6.png" alt="enter image description here"></a></p>
  
  <p>here is the code i am using:</p>
  
  <pre><code> func loadMap(location:CLLocation){
      self.mapView.isMyLocationEnabled = true
      self.mapView.isUserInteractionEnabled = true
      self.view.layoutIfNeeded()
      self.addLocationMarker()
  }
  
  func addLocationMarker(){
      // Creates a marker in the center of the map.
      let marker = GMSMarker()
      print(self.startLocation)
      marker.position = CLLocationCoordinate2D(latitude: self.startLocation.coordinate.latitude, longitude: self.startLocation.coordinate.longitude)
      marker.map = self.mapView
  
      let camera = GMSCameraPosition.camera(withLatitude: self.startLocation.coordinate.latitude, longitude: self.startLocation.coordinate.longitude, zoom: 12.0)
      self.mapView.camera = camera
  }
  </code></pre>
  
  <p>and the mapview is an outlet of a view in the storyboard</p>