Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
amay077 committed Mar 23, 2019
1 parent 50ba89d commit e07feee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XFGoogleMapSample/XFGoogleMapSample/PinsPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void SelectedPin_Changed(object sender, SelectedPinChangedEventArgs e)
labelStatus.Text = $"[{time}]SelectedPin changed - {e?.SelectedPin?.Label ?? "nothing"}";
}

// DO NOT mark async method
// Do NOT mark async method.
// Because Xamarin.Forms.GoogleMaps wait synchronously for this callback returns.
void Map_PinClicked(object sender, PinClickedEventArgs e)
{
Expand All @@ -174,7 +174,7 @@ void Map_PinClicked(object sender, PinClickedEventArgs e)
//if (switchHandlePinClicked.IsToggled)
//{
// map.SelectedPin = e.Pin;
// map.MoveToRegion(MapSpan.FromCenterAndRadius(e.Pin.Position, Distance.FromMeters(500)), true);
// map.AnimateCamera(CameraUpdateFactory.NewPosition(e.Pin.Position));
//}
}
}
Expand Down

0 comments on commit e07feee

Please sign in to comment.