SITMapViewDelegate

Objective-C

@protocol SITMapViewDelegate <NSObject>

Swift

protocol SITMapViewDelegate

Protocol that defines important states of the SITMapView Component

  • Method that gets called when the mapView component detects the user has selected a POI

    Declaration

    Objective-C

    - (void)mapView:(SITMapView *)mapView didSelectedPoi:(SITPOI *)poi;

    Swift

    func mapView(_ mapView: SITMapView!, didSelectedPoi poi: SITPOI!)

    Parameters

    mapView

    the component that is responding to the event

    poi

    the selected element

  • Method that gets called when the mapView component detects the user has deselected a POI

    Declaration

    Objective-C

    - (void)mapView:(SITMapView *)mapView didUnselectedPoi:(SITPOI *)poi;

    Swift

    func mapView(_ mapView: SITMapView!, didUnselectedPoi poi: SITPOI!)

    Parameters

    mapView

    the component that is responding to the event

    poi

    the deselected element