ArcGISRuntimeXamarin.Samples.AuthorEditSaveMap.MapViewModel.ResetMap C# (CSharp) Méthode

ResetMap() public méthode

public ResetMap ( ) : void
Résultat 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

Exemple #1
0
        public override void ViewDidLayoutSubviews()
        {
            base.ViewDidLayoutSubviews();

            // Call the function that creates the UI
            CreateLayout();

            // Set up AuthenticationManager
            UpdateAuthenticationManager();

            // Use the map from the view-model
            _mapViewModel.ResetMap();
        }
All Usage Examples Of ArcGISRuntimeXamarin.Samples.AuthorEditSaveMap.MapViewModel::ResetMap