public override void ViewDidAppear(bool animated) { base.ViewDidAppear(animated); AddXamarinHQPinToMap(); MapHelpers.MoveMapToLocation(MapView, false, _xamarinHQCoordinates); }
public override void ViewDidLoad() { base.ViewDidLoad(); MapHelpers.RequestLocationWhenInUse(); MapHelpers.ShowUserLocation(MapView); }
public override void ViewDidAppear(bool animated) { base.ViewDidAppear(animated); MapHelpers.MoveMapToLocation(MapView, true); MapView.DidUpdateUserLocation += HandleDidUpdateUserLocation; }
void HandleDidUpdateUserLocation(object sender, MKUserLocationEventArgs e) => MapHelpers.MoveMapToLocation(sender as MKMapView, true);