void Handle_IndexChanged(object sender, System.EventArgs e) { var selector = (Picker)sender; int touchIndex = selector.SelectedIndex; City_Map.MoveToRegion(MapSpan.FromCenterAndRadius(new Position(MyList.latitude[touchIndex], MyList.longitude[touchIndex]), Distance.FromMiles(2))); }
public CitiesMap(ListClass listclass) { InitializeComponent(); BindingContext = listclass; MyList = listclass; var initialMapLocation = MapSpan.FromCenterAndRadius(new Position(MyList.latitude[0], MyList.longitude[0]), Distance.FromMiles(50)); City_Map.MoveToRegion(initialMapLocation); PlaceAMarker(); Picker(); }