GoogleRidesharingConsumer Framework Reference

GMTCMapViewDelegate

@protocol GMTCMapViewDelegate <GMSMapViewDelegate>

Delegate for events on GMTCMapView.

  • Called after the mapVIew initialization completes and the mapView is ready to render a mapView session.

    Declaration

    Swift

    optional func mapViewDidInitialize(_ mapview: GMTCMapView)

    Objective-C

    - (void)mapViewDidInitialize:(nonnull GMTCMapView *)mapview;

    Parameters

    mapview

    The GMTCMapView that generated the event.

  • Called after user tapped on the marker.

    Declaration

    Swift

    optional func mapView(_ mapView: GMSMapView, didTapConsumerMarker mapMarker: GMSMarker, markerType: GMTCMapViewMarkerType) -> Bool

    Objective-C

    - (BOOL)mapView:(nonnull GMSMapView *)mapView
        didTapConsumerMarker:(nonnull GMSMarker *)mapMarker
                  markerType:(GMTCMapViewMarkerType)markerType;

    Parameters

    mapView

    The GMTCMapView that generated the event.

    mapMarker

    The user tapped marker.

    markerType

    The type of the tapped marker.

    Return Value

    YES if this delegate handled the tap event, which prevents the map from performing its default selection behavior, and NO if the map should continue with its default selection behavior.