Click or drag to resize

SurfaceElevationSources Property

Gets the collection of elevation sources in the surface.

Namespace:  Esri.ArcGISRuntime.Mapping
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
public ElevationSourceCollection ElevationSources { get; }

Property Value

Type: ElevationSourceCollection
The elevation sources are an ordered collection of elevation source data that are combined to generate a single surface. The order of the elevation sources in the collection indicate which elevation has priority when the sources are spatially coincident.


Example Name: ChangeAtmosphereEffect

Changes the appearance of the atmosphere in a scene.

Code example screen shot.

// Copyright 2019 Esri.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
// language governing permissions and limitations under the License.

using Esri.ArcGISRuntime.Mapping;
using Esri.ArcGISRuntime.UI;
using System;

namespace ArcGISRuntime.WPF.Samples.ChangeAtmosphereEffect
        name: "Change atmosphere effect",
        category: "Scene",
        description: "Changes the appearance of the atmosphere in a scene.",
        instructions: "Select one of the three available atmosphere effects. The sky will change to display the selected atmosphere effect. ",
        tags: new[] { "atmosphere", "horizon", "sky" })]
    public partial class ChangeAtmosphereEffect
        private readonly string _elevationServiceUrl = "";

        public ChangeAtmosphereEffect()

        private void Initialize()
            // Create the scene with a basemap.
            MySceneView.Scene = new Scene(BasemapStyle.ArcGISImageryStandard);

            // Add an elevation source to the scene.
            Surface elevationSurface = new Surface();
            ArcGISTiledElevationSource elevationSource = new ArcGISTiledElevationSource(new Uri(_elevationServiceUrl));
            MySceneView.Scene.BaseSurface = elevationSurface;

            // Set the initial viewpoint.
            Camera initialCamera = new Camera(64.416919, -14.483728, 100, 318, 105, 0);

            // Apply the selected atmosphere effect option.
            RealisticOption.Selected += (sender, e) => MySceneView.AtmosphereEffect = AtmosphereEffect.Realistic;
            HorizonOnlyOption.Selected += (sender, e) => MySceneView.AtmosphereEffect = AtmosphereEffect.HorizonOnly;
            NoneOption.Selected += (sender, e) => MySceneView.AtmosphereEffect = AtmosphereEffect.None;
<UserControl x:Class="ArcGISRuntime.WPF.Samples.ChangeAtmosphereEffect.ChangeAtmosphereEffect"
        <esri:SceneView x:Name="MySceneView"/>
        <Border Style="{StaticResource BorderStyle}">
            <ComboBox IsEditable="False">
                <ComboBoxItem x:Name="RealisticOption">Realistic</ComboBoxItem>
                <ComboBoxItem x:Name="HorizonOnlyOption" IsSelected="True">Horizon only</ComboBoxItem>
                <ComboBoxItem x:Name="NoneOption">None</ComboBoxItem>
See Also
Additional Examples
Hyperlink to ExampleDescription
AddAnIntegratedMeshLayerView an integrated mesh layer from a scene service.
Animate3DGraphicAn `OrbitGeoElementCameraController` follows a graphic while the graphic's position and rotation are animated.
ChangeAtmosphereEffectChanges the appearance of the atmosphere in a scene.
ChooseCameraControllerControl the behavior of the camera in a scene.
CreateTerrainSurfaceRasterSet the terrain surface with elevation described by a raster file.
CreateTerrainSurfaceTilePackageSet the terrain surface with elevation described by a local tile package.
DisplaySceneDisplay a scene with a terrain surface and some imagery.
DistanceMeasurementMeasure distances between two points in 3D.
GetElevationAtPointGet the elevation for a given point on a surface in a scene.
LineOfSightGeoElementShow a line of sight between two moving objects.
LineOfSightLocationPerform a line of sight analysis between two points in real time.
ListKmlContentsList the contents of a KML file.
PlayKmlToursPlay tours in KML files.
SceneLayerSelectionIdentify features in a scene to select.
SceneLayerUrlDisplay an ArcGIS scene layer from a URL.
SceneSymbolsShow various kinds of 3D symbols in a scene.
SurfacePlacementsPosition graphics relative to a surface using different surface placement modes.
TerrainExaggerationVertically exaggerate terrain in a scene.
ViewPointCloudDataOfflineDisplay local 3D point cloud data.
ViewshedCameraAnalyze the viewshed for a camera. A viewshed shows the visible and obstructed areas from an observer's vantage point.
ViewshedGeoElementAnalyze the viewshed for an object (GeoElement) in a scene.
ViewshedLocationPerform a viewshed analysis from a defined vantage point.