Hybrid MapKit map default pins tap

164 views Asked by At

is there a way to tap on the default points of interest and showing its popup using MapKit?

I'm attaching a screenshot of how it works on Apple Map App, if you tap on the POI icon.

Apple Maps

If you try to do the same on your own App with the same map type you see the point of interest but nothing happens when you try to interact with it.

Is it possible somehow to interact with them, or, at least to hide them?

Thanks, Luigi

1

There are 1 answers

0
LoVo On

You need to set the canShowCallout property to YES in the

- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation

for each MKAnnotationView, except for the the MKUserLocation