Google Maps Showing speechbubble in marker info window iOS

I am using GoogleMaps SDK in my iOS application. I have implemented custom info window for GoogleMaps and calling it my ViewController as,

func mapView(mapView: GMSMapView!, markerInfoContents marker: GMSMarker!) -> UIView! {
    var calloutView:CalloutView = NSBundle.mainBundle().loadNibNamed("CalloutView", owner: self, options: nil)[0] as! CalloutView
    views!.detailDisclosure.addTarget(self, action: "detailDisclosureButton_Clicked:", forControlEvents: UIControlEvents.TouchUpInside)
    views.labelText.text = "ABC Text"
 return views


And getting output as below
enter image description here

  • Why is my UILabel not updating as the datepicker changes?
  • Create a custom left back button on UINavigationBar WITH the standard arrow on the left
  • Allow only Numbers for UITextField input
  • Core Data could not fullfil fault for object after obtainPermanantIDs
  • NSDateFormatter wrong string after formatting
  • Time comparisons in swift
  • Info window overlapping and showing bottom edges as below. Also button on info window not getting clicked. Please help for the same.

    Solutions Collect From Internet About “Google Maps Showing speechbubble in marker info window iOS”

    With my experience, - mapView:markerInfoContents: have some problems. In my case, I ended up using - mapView:markerInfoWindow: instead. In this case, you have to draw balloon image by yourself, like this:

    ballon images

    Also button on info window not getting clicked.

    As documented on the bottom of this, markerInfoWindow is rendered as an image, but not true UIView.

    Note: The info window is rendered as an image each time it is displayed on the map. This means that any changes to its properties while it is active will not be immediately visible. The contents of the info window will be refreshed the next time that it is displayed.

    It does not receive any UI events. So, sad to say, any UIControls on markerInfoWindow is useless. The only supported way is to use - mapView:didTapInfoWindowOfMarker: delegate method, that means, you can not define multiple clickable areas on the info window.