{
  "title": "elevationInfo",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "Elevation info defines how features are aligned to ground or other layers.",
  "properties": {
    "featureExpression": {
      "type": "object",
      "description": "<em>Deprecated with 1.8, use `featureExpressionInfo` instead</em>. `{\"value\":0}` ignores geometry z-values.",
      "properties": {
        "value": {
          "type": "number",
          "enum": [
            0
          ]
        }
      },
      "minProperties": 1,
      "additionalProperties": false
    },
    "featureExpressionInfo": {
      "type": "object",
      "description": "An 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.",
      "$ref": "featureExpressionInfo_schema.json"
    },
    "mode": {
      "type": "string",
      "description": "Determines how the service elevation values are combined with the elevation of the scene.",
      "enum": [
        "absoluteHeight",
        "onTheGround",
        "relativeToGround",
        "relativeToScene"
      ]
    },
    "offset": {
      "type": "number",
      "description": "Offset is always added to the result of the above logic except for onTheGround where offset is ignored."
    },
    "unit": {
      "type": "string",
      "description": "A string value indicating the unit for the values in elevationInfo. Applies to both `offset` and `featureExpressionInfo`. Defaults to `meter` if not set. <a href=\"#unit\"><sup>1</sup></a>",
      "default": "meter"
    }
  },
  "required": [
    "mode"
  ],
  "additionalProperties": false,
  "esriDocumentation": {
    "additionalInformation": "[ElevationInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#elevationInfo) in ArcGIS API for JavaScript.<br><a id=\"unit\"><sup>1</sup></a>Supported units: `foot`, `kilometer`, `meter`, `mile`, `us-foot`, `yard`",
    "examples": [
      {
        "code": {
          "elevationInfo": {
            "mode": "relativeToGround",
            "offset": 200,
            "featureExpressionInfo": {
              "expression": "$feature.ELEVATION_FOOT"
            },
            "unit": "foot"
          }
        }
      }
    ]
  }
}
