我有一个MGLAnnotation
,下面加上了MGLPolygon
,以便在注释周围形成圆形。
但是,当我点击注解时,mapView:didSelectAnnotation:
方法将在我真的要点击MGLPolygon
时返回MGLAnnotation
。
是否可以将抽头从MGLPolygon
转发到MGLAnnotation
?
答案 0 :(得分:0)
我意识到我只需要添加以下委托方法:
- (BOOL)mapView:(MGLMapView *)mapView shapeAnnotationIsEnabled:(MGLShape *)annotation {
return NO;
}