{
  "$id": "layer.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "A quantized-mesh terrain layer.json.",
  "properties": {
    "attribution": {
      "default": "",
      "description": "The attribution (credit) string for the terrain.",
      "type": "string"
    },
    "available": {
      "description": "The tile availability information. The outer array is indexed by tile level. The inner array is a list of rectangles of availability at that level. Tiles themselves may also contain further availability information for their subtree.",
      "items": {
        "items": {
          "$ref": "availabilityRectangle.schema.json"
        },
        "type": "array"
      },
      "type": "array"
    },
    "bounds": {
      "default": [
        -180,
        -90,
        180,
        90
      ],
      "description": "The bounding box of the terrain, expressed as west, south, east, north in degrees.",
      "items": {
        "type": "number"
      },
      "maxItems": 4,
      "minItems": 4,
      "type": "array"
    },
    "description": {
      "default": "",
      "description": "The description of this terrain tileset.",
      "type": "string"
    },
    "extensions": {
      "description": "The extensions available for this tileset.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "format": {
      "default": "quantized-mesh-1.0",
      "description": "The format of the terrain tiles. Should be `\"quantized-mesh-1.0\"`.",
      "type": "string"
    },
    "maxzoom": {
      "description": "The maximum level for which there are any available tiles.",
      "type": "integer"
    },
    "metadataAvailability": {
      "description": "The levels at metadata is found in tiles. For example, if this value is 10, then metadata is found at levels 0, 10, 20, etc.",
      "type": "integer"
    },
    "minzoom": {
      "default": 0,
      "description": "The minimum level for which there are any available tiles.",
      "type": "integer"
    },
    "name": {
      "default": "Terrain",
      "description": "The name of this terrain tileset.",
      "type": "string"
    },
    "parentUrl": {
      "description": "The URL of the parent layer.json that this one is layered on top of.",
      "type": "string"
    },
    "projection": {
      "default": "EPSG:4326",
      "description": "The map projection of this tileset. Valid values are `\"EPSG:4326\"` and `\"EPSG:3857\"`.",
      "type": "string"
    },
    "scheme": {
      "default": "tms",
      "description": "The tiling scheme. The only valid value is `\"tms\"`.",
      "type": "string"
    },
    "tiles": {
      "description": "The URL templates from which to obtain tiles.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "version": {
      "default": "1.0.0",
      "description": "The version of this tileset.",
      "type": "string"
    }
  },
  "required": [
    "tiles",
    "maxzoom"
  ],
  "title": "Layer"
}