Ejemplo n.º 1
0
 private void Places_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
 {
     MyMap.RemoveAnnotations(MyMap.Annotations);
     MyMap.AddAnnotations(viewModel.Places.Select(place => new MKPointAnnotation
     {
         Coordinate = new CLLocationCoordinate2D(place.Latitude, place.Longitude),
         Title      = place.Name,
         Subtitle   = $"{place.Stars} / 5 stars",
     }).ToArray());
 }