private async void ShowSaveMapUI(object sender, EventArgs e)
        {
            // Create a SaveMapPage page for getting user input for the new web map item
            var mapInputForm = new SaveMapPage();

            // Handle the save button click event on the page
            mapInputForm.OnSaveClicked += SaveMapAsync;

            // Navigate to the SaveMapPage UI
            // Note: in each platform's project, there is a custom PageRenderer class called SaveMapPage that provides
            //       platform-specific logic to challenge the user for OAuth credentials for ArcGIS Online when the page launches
            await Navigation.PushAsync(mapInputForm);
        }
Exemplo n.º 2
0
        private async void ShowSaveMapUI(object sender, EventArgs e)
        {
            // Create a SaveMapPage page for getting user input for the new web map item
            var mapInputForm = new SaveMapPage();

            // If an existing map, show the UI for updating the item
            var mapItem = MyMapView.Map.Item;

            if (mapItem != null)
            {
                mapInputForm.ShowForUpdate(mapItem.Title, mapItem.Description, mapItem.Tags.ToArray());
            }

            // Handle the save button click event on the page
            mapInputForm.OnSaveClicked += SaveMapAsync;

            // Navigate to the SaveMapPage UI
            // Note: in each platform's project, there is a custom PageRenderer class called SaveMapPage that provides
            //       platform-specific logic to challenge the user for OAuth credentials for ArcGIS Online when the page launches
            await Navigation.PushAsync(mapInputForm);
        }