private void OnMapsButtonTouch(object sender, EventArgs e)
{
// Initialize an UIAlertController with a title and style of an alert
UIAlertController actionSheetAlert = UIAlertController.Create(
"Select a map to open", "", UIAlertControllerStyle.Alert);
// Add actions to alert. Selecting an option re-initializes the Map
// with selected webmap url and assigns it to MapView.
actionSheetAlert.AddAction(UIAlertAction.Create(titles[0], UIAlertActionStyle.Default, (action) =>
{
_myMapView.Map = new Map(new Uri(itemURLs[0]));
}));
actionSheetAlert.AddAction(UIAlertAction.Create(titles[1], UIAlertActionStyle.Default, (action) =>
{
_myMapView.Map = new Map(new Uri(itemURLs[1]));
}));
actionSheetAlert.AddAction(UIAlertAction.Create(titles[2], UIAlertActionStyle.Default, (action) =>
{
_myMapView.Map = new Map(new Uri(itemURLs[2]));
}));
PresentViewController(actionSheetAlert, true, null);
}