protected override void AddRiderToMap(CustomRider rider) { var annotation = new RiderAnnotation(new CLLocationCoordinate2D { Latitude = rider.Latitude, Longitude = rider.Longitude }, rider); _nativeMap.AddAnnotation(annotation); }
private MKAnnotationView GetViewForRiderAnnotation(RiderAnnotation annotation) { var annotationView = _nativeMap.DequeueReusableAnnotation(RiderAnnotationView.CustomReuseIdentifier) as RiderAnnotationView; if (annotationView == null) { annotationView = new RiderAnnotationView(annotation, annotation.Rider); } else { annotationView.Rider = annotation.Rider; } return(annotationView); }