-1

I have a MGLAnnotation with a MGLPolygon added below it to give a circular shape around the annotation.

However, when I tap the annotation, the mapView:didSelectAnnotation: method will return a MGLPolygon when I really want to be tapping the MGLAnnotation.

Is it possible to forward the taps from the MGLPolygon to the MGLAnnotation?

Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412

1 Answers1

1

I realized I just needed to add the following delegate method:

- (BOOL)mapView:(MGLMapView *)mapView shapeAnnotationIsEnabled:(MGLShape *)annotation {

    return NO;

}
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412