private void OnShowBookmarksButtonClicked(object sender, EventArgs e)
{
// Create a new Alert Controller
UIAlertController actionAlert = UIAlertController.Create("Bookmarks", string.Empty,
UIAlertControllerStyle.Alert);
// Add Bookmarks as Actions
foreach(Bookmark myBookmark in _myMapView.Map.Bookmarks)
{
actionAlert.AddAction(UIAlertAction.Create(myBookmark.Name, UIAlertActionStyle.Default,
(action) =>{
_myMapView.SetViewpoint(myBookmark.Viewpoint);
}));
}
// Display the alert
PresentViewController(actionAlert, true, null);
}