{
  "title": "viewpoint",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "The location or camera position from which to view the scene.",
  "properties": {
    "camera": {
      "type": "object",
      "$ref": "camera_schema.json"
    },
    "rotation": {
      "type": "number",
      "description": "The rotation of due north in relation to the top of the view in degrees.",
      "minimum": 0,
      "maximum": 360
    },
    "scale": {
      "type": "number",
      "description": "The scale of the viewpoint."
    },
    "targetGeometry": {
      "type": "object",
      "description": "The target geometry framed by the viewpoint.",
      "oneOf": [
        {
          "description": "",
          "$ref": "geometry_schema.json"
        },
        {
          "description": "",
          "$ref": "extent_schema.json"
        }
      ]
    }
  },
  "required": [
    "camera"
  ],
  "additionalProperties": false
}
