MKAnnotationworking - DEVICE ONLY.
Thanks to Geoff and a bit of ObjC sample code I've figured out a little bit more of MapKit with MonoTouch.
MKPlacemarksnow appear (although I'm still working on
The main changes from MapKit 101 are:
Now calls the *Object method added by Geoff.
Updated to pass the annotation into the constructor of
MKPinAnnotationViewand also set the properties for animation, color and showing the callout when clicked.
public override MKAnnotationView GetViewForAnnotationHopefully I can figure out the
(MKMapView mapView, NSObject annotation)
Console.WriteLine("get view MKAnnotation "+annotation);
var anv = mapView.DequeueReusableAnnotation("thislocation");
if (anv == null)
Console.WriteLine("creating new MKAnnotationView");
anv = new MKPinAnnotationView(annotation, "thislocation");
anv.Annotation = annotation;
anv.AnimatesDrop = true;
anv.PinColor = MKPinAnnotationColor.Green;
anv.CanShowCallout = true;