LineOfSight Layer

The LineOfSight layer is a layer for storing line of sight 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 LineOfSightLayer
listMode To show or hide the layer in the layer list.
Valid values:
  • hide
  • show
observer Defines the observer of a line of sight analysis in a LineOfSight layer.
targets[] A Collection of LineOfSight target objects used for visibility analysis from observer position.
title A human readable string title for the layer that can be used in a table of contents.
visibility Boolean property determining whether the layer is visible in the scene.

Example

{
  "id": "0ed3520523734394b67a760e9f90c5dc",
  "layerType": "LineOfSightLayer",
  "title": "Some Line of Sight Analysis",
  "visibility": true,
  "observer": {
    "position": {
      "x": 0,
      "y": 0,
      "z": 10,
      "spatialReference": {
        "wkid": 102100
      }
    }
  },
  "targets": [
    {
      "position": {
        "x": 1,
        "y": 1,
        "z": 11,
        "spatialReference": {
          "wkid": 102100
        }
      }
    }
  ]
}

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