I'm trying to add some text under marker like in the picture mentioned below,I'm using google maps, Swift
I want to add some text under my marker. There is a way to do that?
My Code
self.mapView.clear();
var bounds = GMSCoordinateBounds();
if let lat = alert?.latitude, let lon = alert?.longitude{
let position = CLLocationCoordinate2D(latitude: lat, longitude: lon)
let marker = GMSMarker(position: position);
marker.title = alert?.deviceName;
marker.groundAnchor = CGPoint(x: 0.5, y: 0.5);
marker.map = mapView;
bounds = bounds.includingCoordinate(position);
}
let update = GMSCameraUpdate.fit(bounds)
self.mapView.animate(with: update);