void HandleCalloutMapAnnotationViewOnAnnotationClicked1 (CalloutMapAnnotation obj) { Util.Log("Clicked on map annotation view"); if (_Association != null) _Association.ClickImage(); }
public AnnotationBtnAssoc(UIButton button, CalloutMapAnnotation calloutAnnotation) { CalloutAnnot = calloutAnnotation; button.TouchDown += HandleButtonTouchUpInside; }
public override void DidSelectAnnotationView (MKMapView mapView, MKAnnotationView view) { try { if (view.Annotation is MyAnnotation) { var myAnnotation = (MyAnnotation)view.Annotation; CalloutMapAnnotation calloutAnnotation = myAnnotation.AssociatedCalloutMapAnnotation; if (calloutAnnotation == null) { calloutAnnotation = new CalloutMapAnnotation(myAnnotation.Coordinate, myAnnotation.Title, ""); } else { calloutAnnotation.Coordinate = myAnnotation.Coordinate; } myAnnotation.AssociatedCalloutMapAnnotation = calloutAnnotation; calloutAnnotation.ParentAnnotation = myAnnotation; mapView.AddAnnotation(calloutAnnotation); selectedAnnotationView = view; } } catch (Exception ex) { Util.LogException("DidSelectAnnotationView", ex); } }