Class ArcGISSceneLayer
A class that represents a layer that renders scene services or local scene packages.
Implements
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class ArcGISSceneLayer : Layer, INotifyPropertyChanged, ILoadable, ILayerContent, IApiKeyResource, IFloorAware
Remarks
Scene layers display content from a scene service or a scene package.
The ArcGISSceneLayer is a layer type optimized for displaying large amounts of data in a SceneView. The ArcGISSceneLayer class displays data published as scene services, scene layer packages(.slpk), and scene layers in mobile scene package (.mspk).
ArcGISSceneLayer supports:
- 3D Object (e.g. buildings)
- Integrated mesh (e.g. buildings, trees, and elevation) (see IntegratedMeshLayer)
- Point features (e.g. trees)
The scene layer complies with the Indexed 3D Scene layer (I3S) format. The I3S format is an open 3D content delivery format used to disseminate 3D GIS data to mobile, web, and desktop clients.
Functional characteristics
- 3D object — 3D object scene layers contain objects explicitly modeled in three dimensions and are used to represent objects such as buildings. These features have attributes and can be identified. See the 3D Object Scene Layer for more information.
- Integrated mesh — 3D mesh data is typically captured by an automated process for constructing 3D objects out of large sets of overlapping imagery. The result integrates the original input image information as a textured mesh including 3D objects, such as buildings and trees, and elevation information. Integrated mesh scene layers are often created for citywide 3D mapping. They can represent something as small as a single building or as large as a city or state. They are often assembled automatically from imagery collected by a drone; they cannot be restyled because there is no underlying feature data. See the Integrated Mesh Scene Layer for more information.
- Point scene — To ensure fast visualization, cached scene layers are used to display large amounts of 3D point data about individual features, such as all the trees in a city. Point scene layers have features that can be identified and that have attributes that may be cached or available from an associated feature layer. The display of point scene layers is automatically thinned to improve performance and visibility at smaller scales and longer distances. Automatic thinning means that not all features are displayed at small scales; as you zoom in, additional features are displayed. See the Point scene layer for more information.
- Point cloud—Point cloud layers provide fast display of large volumes of symbolized and filtered point cloud data. Point clouds are optimized for the display and sharing of data from many kinds of sensors that create point clouds, such as lidar.
Point scene layers are generated from point feature layers. Point scene layers can be generated by ArcGIS Pro and hosted as a scene service or scene layer package.
Note: When publishing a scene from ArcGIS Pro (sharing as a web scene) any point feature layers in the 3D Layers section of the contents pane will be published as a scene service. The scene service will be referenced within the web scene.
Performance characteristics
For a scene layer, the rendering of 3D data is based on the current level of detail (LOD), which is determined by the distance from the camera. Each object in a 3D object service is represented differently at various LODs determined by the camera distance. As the camera distance changes in the scene, objects will be displayed appropriately for the current LOD. This results in good client performance and low memory usage, at the expense of frequently loading and unloading objects.
Sample Code:
Constructors
Name | Description |
---|---|
ArcGISSceneLayer(Item) | Initializes a new instance of the ArcGISSceneLayer class from the specified PortalItem. |
ArcGISSceneLayer(Uri) | Initializes a new instance of the ArcGISSceneLayer class with the specified URI. |
Properties
Name | Description |
---|---|
AltitudeOffset | Gets or sets the altitude offset on the layer. |
ApiKey | Gets or sets the API key that allows your app to access ArcGIS location services and private portal items. |
DataType | Gets a value identifying the type of content within this layer, such as integrated mesh or 3D scene objects. |
FeatureTable | Gets the feature table associated with this layer. |
FloorDefinition | Gets or sets the properties that allow a scene layer to be floor-aware. |
LabelsEnabled | Gets or sets a value indicating whether labels should be displayed. |
PolygonFilter | Gets or sets the filter to be applied to a feature based ArcGISSceneLayer and include or exclude features within the polygons. |
Renderer | Gets or sets a value that specifies how the 3D objects or point features in ArcGISSceneLayer are symbolized. |
Source | Gets or sets the endpoint of the scene service layer or the path to a scene layer package. |
SurfacePlacement | Gets or sets the SurfacePlacement for the layer scene properties. |
Methods
Name | Description |
---|---|
ClearSelection() | Clears all selected features. |
GetSelectedFeaturesAsync() | Returns a collection of the currently selected features. |
ResetFeaturesVisible() | Reset the visibility of all features back to their original state. |
SelectFeature(Feature) | Selects the given feature and adds it to the current collection of selected features. |
SelectFeatures(IEnumerable<Feature>) | Selects the features in the collection and adds them to the current collection of selected features. |
SetFeaturesVisible(IEnumerable<Feature>, Boolean) | Sets the visibility of all features in the collection. |
SetFeatureVisible(Feature, Boolean) | Sets the visibility of the given feature. |
UnselectFeature(Feature) | Unselects the given feature and removes it from the current collection of selected features. |
UnselectFeatures(IEnumerable<Feature>) | Unselects the features in the given collection and removes them from the current collection of selected features. |
See Also
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 |