title: swift - how to fit GMSMapView (google map) to show all markers and prevent over zoom
body: <p>One of my colleagues is working with google map on ios-swift and she wants show some markers to map and fit map zoom in first time to show all markers only. <strong>The main problem occur when the markers are so close together and map zoom to level 18 or 19 and it's too much.</strong> She want prevent this situation and in this case, set map zoom to level 15, but after showing, user can zoom in to markers if the user wants.  We know can fit map to markers with snippet below</p>
  
  <pre><code>var bounds = GMSCoordinateBounds()
  for location in locationArray
  {
      let latitude = location.valueForKey("latitude")
      let longitude = location.valueForKey("longitude")
  
      let marker = GMSMarker()
      marker.position = CLLocationCoordinate2D(latitude:latitude, longitude:longitude)
      marker.map = self.mapView
      bounds = bounds.includingCoordinate(marker.position)
  }
  let update = GMSCameraUpdate.fit(bounds, withPadding: 50)
  mapView.animate(update)
  </code></pre>
  
  <p>but we don't found any zoom control on <code>fitBounds</code> or <code>animateWithCameraUpdate</code></p>