ArcGISRuntime.WPF.Samples.AuthorEditSaveMap.MapViewModel.ResetMap C# (CSharp) Метод

ResetMap() публичный Метод

public ResetMap ( ) : void
Результат void
        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;
        }

Usage Example

 // Reset (create a new) map
 private void OnNewMapClicked(object sender, EventArgs e)
 {
     _mapViewModel.ResetMap();
 }