public void ResetMap() { // Set the current map to null _map = null; // Create a new map with light gray canvas basemap Map newMap = new Map(Basemap.CreateLightGrayCanvasVector()); // Store the new map this.Map = newMap; }
// Reset (create a new) map private void OnNewMapClicked(object sender, EventArgs e) { _mapViewModel.ResetMap(); }