{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "MapChartSettings",
    "description": "The data contained in a MapChart settings object",
    "type": "object",
    "properties": {
        "title": {
            "type": "string"
        },
        "description": {
            "type": "string"
        },
        "zoomPosition": {
            "enum": [
                "topright",
                "topleft",
                "bottomleft",
                "bottomright",
                "none"
            ]
        },
        "legendPosition": {
            "enum": [
                "topright",
                "topleft",
                "bottomleft",
                "bottomright",
                "none"
            ]
        },
        "scalePosition": {
            "enum": [
                "topright",
                "topleft",
                "bottomleft",
                "bottomright",
                "none"
            ]
        },
        "allowFilter": {
            "type": "boolean"
        },
        "maxItems": {
            "type": "integer",
            "minimum": 1
        },
        "area": {
            "type": "object",
            "properties": {
                "x": {
                    "type": "number"
                },
                "y": {
                    "type": "number"
                },
                "zoom": {
                    "type": "number",
                    "minimum": 1
                }
            }
        }
    }
}