The SceneLayer is a layer type designed for on-demand streaming and displaying large amounts of data in a SceneView. SceneLayers support two geometry types: Point and 3D Objects (e.g. buildings). The SceneLayer displays data published to a Scene Service. Scene Services can hold large volumes of features in an open format that is suitable for web streaming. The SceneLayer loads these features progressively, starting from coarse representations and refines them to higher detail as necessary for close-up views.

Referenced by: baseMapLayer, operationalLayers

Properties

PropertyDetails
attributeTableInfoAn attributeTableInfo object defining how the data will be presented in tabular format.
customParametersA sequence of custom parameters appended to the URL of all requests related to a layer.
disablePopupdisablePopups allows a client to ignore popups defined by the service item.
idA unique identifying string for the layer.
itemIdOptional string containing the item ID of the service if it’s registered on ArcGIS Online or your organization’s portal.
layerDefinitionA layerDefinition object defining the attribute schema and drawing information for the layer.
See layerDefinition properties table.
layerTypeString indicating the layer type.
Valid value of this property ArcGISSceneServiceLayer
listModeTo show or hide layers in the layer list
Valid values:
  • hide
  • show
opacityThe degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.
pathFor offline data, a path to a scene layer package file. A URI format is used, starting with file: followed by a file system path with an extension of .slpk. A relative path must be from the file which defines the layer. For example file:../p20/northamerica.slpk.
popupInfoA popupInfo object defining the content of pop-up windows when you click or query a feature.
screenSizePerspectiveApply perspective scaling to screen-size symbols.
showLabelsIf the layer has a labelingInfo property then labels show on the scene only if the showLabels property it true.
showLegendBoolean value indicating whether to display the layer in the legend. Default value is true.
timeAnimationIndicates whether to enable time animation if the layer supports it. Default value is true.
titleA user-friendly string title for the layer that can be used in a table of contents.
urlThe URL to the service.
visibilityBoolean property determining whether the layer is initially visible in the web scene
visibilityTimeExtentRepresents time extent that will control when a layer should be visible based on webscene’s current time. Visibility time extent only affects the layer visibility and will not filter the data.

layerDefinition properties

PropertyDetails
definitionExpressionSQL-based definition expression string that narrows the data to be displayed in the layer.
drawingInfo.labelingInfo[]An array of labelingInfo objects.
drawingInfo.rendererThe renderer object contains the drawing information for the operationalLayer.
drawingInfo.transparencyNumber value ranging between 0 (no transparency) to 100 (completely transparent).
elevationInfoElevation info defines how features and other scene elements are aligned to ground or other layers.
excludeObjectIds[]Excludes features with the given object ids from rendering.
featureReductionAn object that specifies how features are reduced or aggregated, with the goal of decluttering the view or presenting the user with an aggregate visualization.
floorInfoContains floor-awareness information for the layer.
maxScaleRepresents the maximum scale (most zoomed in) at which the layer is visible in the view. If the web scene is zoomed in beyond this scale, the layer will not be visible. A value of 0 means the layer does not have a maximum scale. If set, the maxScale value should always be smaller than the minScale value, and greater than or equal to the service specification.
minScaleRepresents the minimum scale (most zoomed out) at which the layer is visible in the view. If the web scene is zoomed out beyond this scale, the layer will not be visible. A value of 0 means the layer does not have a minimum scale. If set, the minScale value should always be larger than the maxScale value, and lesser than or equal to the service specification.
polygonFilterPolygon filter for scene layer features.
rangeInfos[]Indicates range information
timeInfoAn object that defines properties to enable time on a layer or table.

operationalLayer Example

Live sample web scene showing the Scene Layer as an operationalLayer

{
"id": "1598894cf8a-layer-1",
"opacity": 1,
"title": "Buildings Textured",
"url": "http://tiles.arcgis.com/tiles/lVkj5PBOw7tRmIPU/arcgis/rest/services/sf_small/SceneServer/layers/0",
"visibility": true,
"layerType": "ArcGISSceneServiceLayer",
"itemId": "44a4ce7c2d2048ddb0606f8ed2cdf293"
}

operationalLayer with a spatial filter Example

Scene layer as operational layer with a spatial filter

{
"id": "1598894cf8a-layer-1",
"opacity": 1,
"title": "Buildings Textured",
"url": "http://tiles.arcgis.com/tiles/lVkj5PBOw7tRmIPU/arcgis/rest/services/sf_small/SceneServer/layers/0",
"visibility": true,
"layerType": "ArcGISSceneServiceLayer",
"itemId": "44a4ce7c2d2048ddb0606f8ed2cdf293",
"layerDefinition": {
"polygonFilter": {
"spatialRelationship": "disjoint",
"geometries": "./resources/polygonFilter/geometries.json"
}
}
}