{
  "title": "OpenStreetMap Layer (OpenStreetMap)",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "Allows use of OpenStreetMap data for use in basemaps only.",
  "properties": {
    "id": {
      "type": "string",
      "description": "An identifying string for the layer, unique per scene.",
      "default": "defaultBasemap"
    },
    "layerType": {
      "type": "string",
      "description": "String indicating the layer type.",
      "enum": [
        "OpenStreetMap"
      ]
    },
    "listMode": {
      "type": "string",
      "description": "To show or hide layers in the layer list",
      "enum": [
        "hide",
        "show"
      ]
    },
    "maxScale": {
      "type": "number",
      "description": "A numeric property used to determine the maximum scale at which the layer is displayed.",
      "minimum": 0,
      "exclusiveMinimum": true
    },
    "minScale": {
      "type": "number",
      "description": "A numeric property used to determine the minimum scale at which the layer is displayed.",
      "minimum": 0,
      "exclusiveMinimum": true
    },
    "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
    },
    "title": {
      "type": "string",
      "description": "String title for the basemap layer."
    },
    "visibility": {
      "type": "boolean",
      "description": "Boolean property determining whether the layer is initially visible.",
      "default": true
    }
  },
  "required": [
    "id",
    "layerType",
    "title"
  ],
  "additionalProperties": false,
  "esriDocumentation": {
    "examples": [
      {
        "title": "",
        "description": "Live sample web scene showing the OpenStreetMap as a [baseMapLayer](https://www.arcgis.com/home/webscene/viewer.html?webscene=45109af15da54a49ab41ba9a3ede92ec)",
        "code": {
          "baseMapLayers": [
            {
              "title": "Layer",
              "layerType": "OpenStreetMap",
              "opacity": 1,
              "visibility": true,
              "id": "OpenStreetMap"
            }
          ],
          "id": "15987d24c4b-basemap-11",
          "title": "OpenStreetMap"
        }
      }
    ]
  }
}
