I am new in iOS development. I am drawing a circle on user location and I want to add the title to the circle. I am using following code
var cirlce: GMSCircle!
let myPlacelatitude = (locationManager.location?.coordinate.latitude)! let myPlacelongitude = (locationManager.location?.coordinate.longitude)!
let userLocation = GMSCameraPosition.camera(withLatitude: myPlacelatitude,
longitude: myPlacelongitude,
zoom: 7.5)
mapView.camera = userLocation
let marker = GMSMarker()
marker.position = CLLocationCoordinate2DMake(myPlacelatitude, myPlacelongitude)
marker.title = ""
marker.snippet = ""
marker.map = mapView
let camera = GMSCameraPosition.camera(withLatitude: myPlacelatitude,
longitude: myPlacelongitude, zoom: 6)
cirlce = GMSCircle(position: camera.target, radius: 50000)
cirlce.fillColor = UIColor.green.withAlphaComponent(0.5)
cirlce1.isTappable = true
// the title is not setting to the circle in google map
cirlce.title = "40 KM"
cirlce.map = mapView