Class Scene
The scene is a container for layers. You use a scene together with a SceneView to display layers of geographic data in 3D.
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
[CreateFromString(MethodName = "Esri.ArcGISRuntime.CreateFromStringHelpers.CreateSceneFromStringUrl")]
public class Scene : GeoModel, INotifyPropertyChanged, ILoadable
Remarks
The scene contains layers of mapping data and information such as elevation data, renderers, and labels which define the scene's capabilities. You can access the scene content directly or, more commonly, visualize the scene in a scene view.
In an MVC architecture, the scene represents the model and the scene view represents the 3D view. The scene specifies how the geographic data is organized, and the scene view renders the data on the screen and allows users to interact with it.
A scene can contain a base surface, a basemap, and one or more operational layers:
- A base surface is the default surface on which layers are draped or from which relative layers are offset. The ground height is provided by ElevationSource objects that are combined to make the Surface.
- A basemap helps orient the user of the scene. It is composed of a collection of base layers, such as imagery or hillshade, that are draped on the surface, and/or reference layers such as street labels that are displayed on top of operational layers. This content is relatively static.
- An operational layer provides content that is of unique interest to the app and the task at hand, such as data about earthquakes, traffic, or weather. This content can change frequently.
You can create a scene from an existing web scene using its URL or PortalItem. Alternatively, you can get a scene directly from a Scenes collection. Scene properties are hydrated when the scene is loaded.
If you create a new scene, the spatial reference of the first layer you add, which is typically the first layer in the Basemap, defines the spatial reference of the entire scene.
See Scenes 3D) for more information about scenes.
Constructors
Name | Description |
---|---|
Scene() | Initializes a new instance of the Scene class. |
Scene(Basemap) | Initializes a new instance of the Scene class with a Basemap. |
Scene(BasemapStyle) | Initializes a new instance of the Scene class with a BasemapStyle. |
Scene(SceneViewTilingScheme) | Initializes a new instance of the Scene class with a specific tiling scheme. |
Scene(Item) | Initializes a new instance of the Scene class a portal item of type WebScene. |
Scene(Uri) | Initializes a new instance of the Scene class with a Uri to a web scene. |
Properties
Name | Description |
---|---|
BaseSurface | Gets or sets the base surface for the scene. |
SceneViewTilingScheme | Gets the SceneViewTilingScheme that defines how tile based data is rendered. |
UnknownJson | Gets the unknown JSON from the source JSON. |
UnsupportedJson | Gets the unsupported data from the source JSON. |
Methods
Name | Description |
---|---|
FromJson(String) | Creates a scene from the specified JSON. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |