public UpdateLocation ( CLLocationCoordinate2D newLocation, bool animated ) : void | ||
newLocation | CLLocationCoordinate2D | |
animated | bool | |
Résultat | void |
public void UpdateLocation(CLLocationCoordinate2D newLocation, bool animated){
var span = new MKCoordinateSpan(0.1,0.1);
var region = new MKCoordinateRegion(newLocation, span);
_mapView.SetRegion(region, animated);
if (_geocodeAnnotation!=null)
_mapView.RemoveAnnotation(_geocodeAnnotation);
_geocodeAnnotation = new MapViewAnnotation(newLocation);
_mapView.AddAnnotationObject(_geocodeAnnotation);
}