ArcGISRuntime.UWP.Samples.FeatureCollectionLayerFromQuery.FeatureCollectionLayerFromQuery.Initialize C# (CSharp) Method

Initialize() private method

private Initialize ( ) : void
return void
        private void Initialize()
        {
            try
            {
                // Create a new map with the oceans basemap and add it to the map view
                var map = new Map(Basemap.CreateOceans());
                MyMapView.Map = map;

                // Call a function that will create a new feature collection layer from a service query
                GetFeaturesFromQuery();
            }
            catch (Exception ex)
            {
                var messageDlg = new MessageDialog("Unable to create feature collection layer: " + ex.Message, "Error");
                messageDlg.ShowAsync();
            }
        }