I am working on an app that displays certain markers based on a radius around your current location. The radius is between 100 - 5000 meters. I change the radius with an U
U
For Swift 3
extension GMSCircle { var bounds: GMSCoordinateBounds { return [0, 90, 180, 270].map { GMSGeometryOffset(position, radius, $0) }.reduce(GMSCoordinateBounds()) { $0.includingCoordinate($1) } } }
Usage:
mapView.animate(with: .fit(circle.bounds))