0

I'm trying to add an action on a button using the custom infowindow. Looks like this infowindow is rendered as an image and can't take any action.

I'm using this method:

-(UIView *) mapView:(GMSMapView *)mapView markerInfoWindow:(GMSMarker *)marker{
    //my code
}

I added my Custom infowindow within a .XIB file. I would like to trigger the event touchupinside but still can't achieve this.

Some links I tried to follow unsuccessfully:

Thanks!

EDIT For Apple Maps, it can be achieved using this beautiful class available on github.

Community
  • 1
  • 1
Super Guillaume
  • 87
  • 1
  • 11

1 Answers1

0
If you check GMSMapView.h within GoogleMaps.Framework, you can see the below method which should let you add a custom infowindow for a marker, instead of using standard title and snippet alone:

NOTE you (op) say annotationView=infoWindow
BUT NORMAL: annotationView = marker itself and calloutView = infoWindow

Visit Custom annotation view in Google Maps SDK

Community
  • 1
  • 1
SHASHANK
  • 109
  • 2
  • 13