{
  "version": 8,
  "sources": {
    "mvt_source": {
      "type": "vector",
      "tiles": [
        "https://wmts.mapama.gob.es/sig/tiles/ZIF_RiesgoPob_10/{z}/{x}/{y}"
      ],
      "minzoom": 4,
      "maxzoom": 19,
      "minZoom": 4,
      "maxZoom": 19
    }
  },
  "layers": [
    {
      "id": "riesgo_0_fill",
      "type": "fill",
      "source": "mvt_source",
      "source-layer": "ZIF_RiesgoPob_10",
      "filter": [
        "all",
        [
          ">=",
          [
            "get",
            "Nº de habitantes estimados en la zona inundable del término municipal"
          ],
          0
        ],
        [
          "<",
          [
            "get",
            "Nº de habitantes estimados en la zona inundable del término municipal"
          ],
          1
        ]
      ],
      "paint": {
        "fill-color": "#E9FFBE",
        "fill-outline-color": "#828282"
      }
    },
    {
      "id": "riesgo_1_101_fill",
      "type": "fill",
      "source": "mvt_source",
      "source-layer": "ZIF_RiesgoPob_10",
      "filter": [
        "all",
        [
          ">",
          [
            "get",
            "Nº de habitantes estimados en la zona inundable del término municipal"
          ],
          1
        ],
        [
          "<",
          [
            "get",
            "Nº de habitantes estimados en la zona inundable del término municipal"
          ],
          101
        ]
      ],
      "paint": {
        "fill-color": "#FFD37F",
        "fill-outline-color": "#828282"
      }
    },
    {
      "id": "riesgo_101_1001_fill",
      "type": "fill",
      "source": "mvt_source",
      "source-layer": "ZIF_RiesgoPob_10",
      "filter": [
        "all",
        [
          ">",
          [
            "get",
            "Nº de habitantes estimados en la zona inundable del término municipal"
          ],
          101
        ],
        [
          "<",
          [
            "get",
            "Nº de habitantes estimados en la zona inundable del término municipal"
          ],
          1001
        ]
      ],
      "paint": {
        "fill-color": "#FFA77F",
        "fill-outline-color": "#828282"
      }
    },
    {
      "id": "riesgo_1001_5000_fill",
      "type": "fill",
      "source": "mvt_source",
      "source-layer": "ZIF_RiesgoPob_10",
      "filter": [
        "all",
        [
          ">",
          [
            "get",
            "Nº de habitantes estimados en la zona inundable del término municipal"
          ],
          1001
        ],
        [
          "<",
          [
            "get",
            "Nº de habitantes estimados en la zona inundable del término municipal"
          ],
          5001
        ]
      ],
      "paint": {
        "fill-color": "#FF5500",
        "fill-outline-color": "#828282"
      }
    },
    {
      "id": "riesgo_mayor_5000_fill",
      "type": "fill",
      "source": "mvt_source",
      "source-layer": "ZIF_RiesgoPob_10",
      "filter": [
        "all",
        [
          ">",
          [
            "get",
            "Nº de habitantes estimados en la zona inundable del término municipal"
          ],
          5001
        ],
        [
          "<",
          [
            "get",
            "Nº de habitantes estimados en la zona inundable del término municipal"
          ],
          50000000
        ]
      ],
      "paint": {
        "fill-color": "#F50000",
        "fill-outline-color": "#828282"
      }
    }
  ]
}