MQMapViewPOIDelegate

@protocol MQMapViewPOIDelegate <NSObject>

The MQMapViewPOIDelegate protocol defines optional methods that you can use to receive a message when user interacts with Points of Interest.

  • This method will be called when a Point of Interest is tapped on the map.

    Declaration

    Objective-C

    - (void)mapView:(id)mapView didTapOnPOI:(MQNamedPlace *)poi;

    Swift

    optional func mapView(_ mapView: Any!, didTapOnPOI poi: MQNamedPlace!)

    Parameters

    mapView

    mapView that captured the tap

    poi

    object of MQNamedPlace that gives information about the POI that was tapped