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
hope it will work.
in view controller initialise this circle
var cirlce: GMSCircle!
in viewdidload
cirlce = GMSCircle(position: camera.target, radius: 10000)
cirlce.fillColor = UIColor.red.withAlphaComponent(0.5)
cirlce.map = mapView
call the delegate of googlemap
func mapView(_ mapView: GMSMapView, didChange position: GMSCameraPosition) {
print(position.zoom)
var zoom:Double = Double(position.zoom/4)
zoom = pow(10, zoom)
zoom = 1000000/zoom
cirlce.radius = zoom
}