# GoogleRidesharingConsumer Framework Reference

# GMTCMapViewDelegate

    @protocol GMTCMapViewDelegate <GMSMapViewDelegate>

Delegate for events on `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCMapView.html`.
- `


  ### [-mapViewDidInitialize:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCMapViewDelegate#/c:objc(pl)GMTCMapViewDelegate(im)mapViewDidInitialize:)


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

  #### Declaration

  Swift

      optional func mapViewDidInitialize(_ mapview: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCMapView.html)

  Objective-C

      - (void)mapViewDidInitialize:(nonnull https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCMapView.html *)mapview;

  #### Parameters

  |---|---|
  | ` mapview ` | The GMTCMapView that generated the event. |

- `


  ### [-mapView:didTapConsumerMarker:markerType:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Protocols/GMTCMapViewDelegate#/c:objc(pl)GMTCMapViewDelegate(im)mapView:didTapConsumerMarker:markerType:)


  ` Called after user tapped on the marker.

  #### Declaration

  Swift

      optional func mapView(_ mapView: GMSMapView, didTapConsumerMarker mapMarker: GMSMarker, markerType: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Enums/GMTCMapViewMarkerType.html) -> Bool

  Objective-C

      - (BOOL)mapView:(nonnull GMSMapView *)mapView
          didTapConsumerMarker:(nonnull GMSMarker *)mapMarker
                    markerType:(https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Enums/GMTCMapViewMarkerType.html)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.