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)
{
MessageBox.Show("Unable to create feature collection layer: " + ex.Message, "Error");
}
}