{
  "version": 8,
  "name": "sample",
  "sources": {
    "fault": {
      "type": "vector",
      "tiles": [
        "https://www.j-shis.bosai.go.jp/map/xyz/major_fault/Y2022/MAX/{z}/{x}/{y}.mvt"
      ],
      "maxzoom": 15,
      "minzoom": 4
    }
  },
  "layers": [
    {
      "id": "x-rank",
      "type": "fill",
      "source": "fault",
      "source-layer": "major_fault",
      "filter": [
        "all",
        [
          "==",
          "$type",
          "Polygon"
        ],
        [
          "<=",
          "MAX_T30P",
          0.0
        ]
      ],
      "paint": {
        "fill-color": "#c7c7c7"
      }
    },
    {
      "id": "z-rank",
      "type": "fill",
      "source": "fault",
      "source-layer": "major_fault",
      "filter": [
        "all",
        [
          "==",
          "$type",
          "Polygon"
        ],
        [
          "<",
          "MAX_T30P",
          0.001
        ],
        [
          ">",
          "MAX_T30P",
          0.0
        ]
      ],
      "paint": {
        "fill-color": "#fbfbbd"
      }
    },
    {
      "id": "a-rank",
      "type": "fill",
      "source": "fault",
      "source-layer": "major_fault",
      "filter": [
        "all",
        [
          "==",
          "$type",
          "Polygon"
        ],
        [
          "<",
          "MAX_T30P",
          0.03
        ],
        [
          ">=",
          "MAX_T30P",
          0.001
        ]
      ],
      "paint": {
        "fill-color": "#f8e600"
      }
    },
    {
      "id": "s-rank",
      "type": "fill",
      "source": "fault",
      "source-layer": "major_fault",
      "filter": [
        "all",
        [
          "==",
          "$type",
          "Polygon"
        ],
        [
          ">=",
          "MAX_T30P",
          0.03
        ]
      ],
      "paint": {
        "fill-color": "#ff0000"
      }
    },
    {
      "id": "frame",
      "type": "line",
      "source": "fault",
      "source-layer": "major_fault",
      "filter": [
        "all",
        [
          "==",
          "$type",
          "Polygon"
        ]
      ],
      "paint": {
        "line-color": "#000000",
        "line-width": 1
      }
    },
    {
      "id": "frame-dip90",
      "type": "line",
      "source": "fault",
      "source-layer": "major_fault",
      "filter": [
        "all",
        [
          "==",
          "$type",
          "Polygon"
        ],
        [
          "==",
          "DIP",
          90
        ]
      ],
      "paint": {
        "line-color": "#000000",
        "line-width": 3
      }
    },
    {
      "id": "x-rank-frame",
      "type": "line",
      "source": "fault",
      "source-layer": "major_fault",
      "filter": [
        "all",
        [
          "==",
          "$type",
          "Polygon"
        ],
        [
          "==",
          "DIP",
          90
        ],
        [
          "<=",
          "MAX_T30P",
          0.0
        ]
      ],
      "paint": {
        "line-color": "#c7c7c7",
        "line-width": 2
      }
    },
    {
      "id": "z-rank-frame",
      "type": "line",
      "source": "fault",
      "source-layer": "major_fault",
      "filter": [
        "all",
        [
          "==",
          "$type",
          "Polygon"
        ],
        [
          "==",
          "DIP",
          90
        ],
        [
          "<",
          "MAX_T30P",
          0.001
        ],
        [
          ">",
          "MAX_T30P",
          0.0
        ]
      ],
      "paint": {
        "line-color": "#fbfbbd",
        "line-width": 2
      }
    },
    {
      "id": "a-rank-frame",
      "type": "line",
      "source": "fault",
      "source-layer": "major_fault",
      "filter": [
        "all",
        [
          "==",
          "$type",
          "Polygon"
        ],
        [
          "==",
          "DIP",
          90
        ],
        [
          "<",
          "MAX_T30P",
          0.03
        ],
        [
          ">=",
          "MAX_T30P",
          0.001
        ]
      ],
      "paint": {
        "line-color": "#f8e600",
        "line-width": 2
      }
    },
    {
      "id": "s-rank-frame",
      "type": "line",
      "source": "fault",
      "source-layer": "major_fault",
      "filter": [
        "all",
        [
          "==",
          "$type",
          "Polygon"
        ],
        [
          "==",
          "DIP",
          90
        ],
        [
          ">=",
          "MAX_T30P",
          0.03
        ]
      ],
      "paint": {
        "line-color": "#ff0000",
        "line-width": 2
      }
    }
  ]
}
