{
  "title": "Raster Data Layer",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "A layer for displaying raster data. This layer only applies to offline data.",
  "properties": {
    "copyright": {
      "type": "string",
      "description": "Attribution to the Raster Data Layer provider. It is displayed in the attribution on the scene. Input required by the user when the layer is added to the scene."
    },
    "id": {
      "type": "string",
      "description": "A unique identifying string for the layer."
    },
    "layerType": {
      "type": "string",
      "description": "String indicating the layer type.",
      "enum": [
        "RasterDataLayer"
      ]
    },
    "listMode": {
      "type": "string",
      "description": "To show or hide the sublayer in the layer list.",
      "enum": [
        "hide",
        "show"
      ]
    },
    "maxScale": {
      "type": "number",
      "description": "A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator.",
      "minimum": 0
    },
    "minScale": {
      "type": "number",
      "description": "A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator.",
      "minimum": 0
    },
    "opacity": {
      "type": "number",
      "description": "The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",
      "minimum": 0,
      "maximum": 1,
      "default": 1
    },
    "path": {
      "type": "string",
      "description": "For offline data, a path to a raster data file. A URI format is used, starting with `file:` followed by a file system path. A relative path must be from the file which defines the layer. For example `file:../commondata/raster_data/beijing.tif`.",
      "pattern": "^file:.+$"
    },
    "title": {
      "type": "string",
      "description": "A user-friendly string title for the layer that can be used in a table of contents."
    },
    "visibility": {
      "type": "boolean",
      "description": "Boolean property determining whether the layer is initially visible in the scene.",
      "default": true
    }
  },
  "required": [
    "id",
    "layerType",
    "path",
    "title"
  ],
  "additionalProperties": false,
  "esriDocumentation": {
    "examples": [
      {
        "title": "Raster Data Layer",
        "code": {
          "operationalLayers": [
            {
              "id": "0ed3520523734394b67a760e9f90c5dc",
              "layerType": "RasterDataLayer",
              "title": "Beijing",
              "opacity": 1.0,
              "visibility": true,
              "path": "file:../commondata/raster_data/beijing.tif"
            }
          ]
        }
      }
    ]
  }
}
