The viewshed layer is a layer for storing viewshed analyses in web scenes.
Referenced by: operationalLayers
Properties
| Property | Details |
|---|---|
| id | A unique identifying string for the layer. |
| layerType | String indicating the layer type. Valid value of this property ViewshedLayer |
| listMode | To show or hide the layer in the layer list. Valid values:
|
| title | A human readable string title for the layer that can be used in a table of contents. |
| viewsheds[] | A collection of viewshed objects embedded in the layer. |
| visibility | Boolean property determining whether the layer is visible in the scene. |
| visibilityTimeExtent | Represents 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. |
Example
{ "id": "0ed3520523734394b67a760e9f90c5dc", "layerType": "ViewshedLayer", "title": "Viewsheds", "visibility": true, "viewsheds": [ { "observer": { "x": 0, "y": 0, "z": 10, "spatialReference": { "wkid": 102100 } }, "farDistance": 100, "heading": 42, "tilt": 90, "horizontalFieldOfView": 120, "verticalFieldOfView": 90 } ]}