Elevation info defines how features and other scene elements are aligned to ground or other layers.

Referenced by: layerDefinition, LineOfSight Observer, LineOfSight Target, Raster Layer Definition, Viewshed

Properties

PropertyDetails
featureExpressionDeprecated with 1.8, use featureExpressionInfo instead. {"value":0} ignores geometry z-values.
featureExpressionInfoAn object that defines an expression for per-feature elevation. If not set, geometry.z values are used for elevation. unit is applied to the resulting expression value.
modeDetermines how the service elevation values are combined with the elevation of the scene.
Valid values:
  • absoluteHeight
  • onTheGround
  • relativeToGround
  • relativeToScene
offsetOffset is always added to the result of the above logic except for onTheGround where offset is ignored.
unitA string value indicating the unit for the values in elevationInfo. Applies to both offset and featureExpressionInfo. Defaults to meter if not set. 1

Additional information

ElevationInfo in ArcGIS API for JavaScript.
1Supported units: foot, kilometer, meter, mile, us-foot, yard

Example

{
"mode": "relativeToGround",
"offset": 200,
"featureExpressionInfo": {
"expression": "$feature.ELEVATION_FOOT"
},
"unit": "foot"
}