private void Initialize()
{
// Create a map with a topographic basemap
Map myMap = new Map(Basemap.CreateTopographic());
// Create a new geoprocessing task
_hotspotTask = new GeoprocessingTask(new Uri(_hotspotUrl));
// Assign the map to the MapView
MyMapView.Map = myMap;
// Set the initial start date for the DatePicker defined in xaml
var myFromDate = new DateTimeOffset(new DateTime(1998, 1, 1));
FromDate.Date = myFromDate;
// Set the initial end date for the DatePicker defined in xaml
var myToDate = new DateTimeOffset(new DateTime(1998, 1, 31));
ToDate.Date = myToDate;
}