private void Initialize()
{
try
{
// Create a new map with the oceans basemap and add it to the map view
Map myMap = new Map(Basemap.CreateOceans());
_myMapView.Map = myMap;
// Call a function that will create a new feature collection layer and zoom to it
CreateNewFeatureCollection();
}
catch (Exception ex)
{
var alertBuilder = new AlertDialog.Builder(this);
alertBuilder.SetTitle("Error");
alertBuilder.SetMessage("Unable to create feature collection layer: " + ex.Message);
alertBuilder.Show();
}
}