Display a scene

View inAndroidFormsUWPWPFWinUIiOSView on GitHubSample viewer app

Display a scene with a terrain surface and some imagery.

Image of display scene

Use case

Scene views are 3D representations of real-world areas and objects. Scene views are helpful for visualizing complex datasets where 3D relationships, topography, and elevation of elements are important factors.

How to use the sample

When loaded, the sample will display a scene. Pan and zoom to explore the scene.

How it works

  1. Create a Scene object with the BasemapStyle.ArcGISImageryStandard basemap style.
  2. Create an ArcGISTiledElevationSource object and add it to the scene's base surface.
  3. Create a SceneView object to display the map.
  4. Set the scene to the scene view.

Relevant API

  • ArcGISTiledElevationSource
  • Scene
  • SceneView

Tags

3D, basemap, elevation, scene, surface

Sample Code

DisplayScene.xamlDisplayScene.xamlDisplayScene.xaml.cs
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
<UserControl x:Class="ArcGISRuntime.WPF.Samples.DisplayScene.DisplayScene"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
    <Grid>
        <esri:SceneView x:Name="MySceneView" />
    </Grid>
</UserControl>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.