ArcGISRuntime.UWP.Samples.SetMapSpatialReference.SetMapSpatialReference.Initialize C# (CSharp) Метод

Initialize() приватный Метод

private Initialize ( ) : void
Результат void
        private void Initialize()
        {
            // Create new Map using spatial reference as world bonne (54024)
            Map myMap = new Map(SpatialReference.Create(54024));

            // Adding a map image layer which can reproject itself to the map's spatial reference
            // Note: Some layer such as tiled layer cannot reproject and will fail to draw if their spatial 
            // reference is not the same as the map's spatial reference
            ArcGISMapImageLayer operationalLayer = new ArcGISMapImageLayer(new Uri(
                "http://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer"));

            // Add operational layer to the Map
            myMap.OperationalLayers.Add(operationalLayer);

            // Assign the map to the MapView
            MyMapView.Map = myMap;
        }
    }