{
  "version": 8,
  "name": "Prorail",
  "metadata": {
    "maputnik:renderer": "mbgljs"
  },
  "center": [
    5.41,
    52.15
  ],
  "zoom": 12,
  "light": {
    "anchor": "viewport"
  },
  "sources": {
    "prorail": {
      "type": "vector",
      "tiles": [
        "https://maps.staging.ndw.nu/api/v1/prorail/latest/mbtiles/prorail/tiles/{z}/{x}/{y}.pbf"
      ],
      "minzoom": 4,
      "maxzoom": 20
    }
  },
  "sprite": "https://maps.staging.ndw.nu/styles/sprites/osm-default/osm-default",
  "glyphs": "https://maps.staging.ndw.nu/styles/glyphs/{fontstack}/{range}.pbf",
  "layers": [
    {
      "id": "route-sections",
      "type": "line",
      "source": "prorail",
      "source-layer": "route-sections",
      "paint": {
        "line-width": 5,
        "line-color": "rgb(178, 10, 47)"
      }
    },
    {
      "id": "rail-branch-parts",
      "type": "line",
      "source": "prorail",
      "source-layer": "rail-branch-parts",
      "minzoom": 10,
      "paint": {
        "line-width": 3,
        "line-color": "rgb(176, 96, 113)"
      }
    },
    {
      "id": "route-sections-dash",
      "type": "line",
      "source": "prorail",
      "source-layer": "route-sections",
      "paint": {
        "line-color": "rgba(255, 255, 255, 1)",
        "line-dasharray": [
          5,
          5
        ],
        "line-width": 3
      }
    },
    {
      "id": "rail-branch-parts-dash",
      "type": "line",
      "source": "prorail",
      "source-layer": "rail-branch-parts",
      "minzoom": 10,
      "paint": {
        "line-color": "rgba(255, 255, 255, 1)",
        "line-dasharray": [
          5,
          5
        ],
        "line-width": 1.5
      }
    },
    {
      "id": "level-crossings-with-crossbucks",
      "type": "circle",
      "source": "prorail",
      "source-layer": "level-crossings",
      "minzoom": 10,
      "filter": [
        "all",
        [
          "in",
          "administrator",
          "ProRail",
          "ProRail, Besluit bijzondere spoorwegen"
        ],
        [
          ">",
          "numberOfCrosses",
          0
        ]
      ],
      "paint": {
        "circle-color": "rgb(44, 42, 59)",
        "circle-stroke-color": "rgb(255, 255, 255)",
        "circle-stroke-width": {
          "stops": [
            [
              4,
              0.5
            ],
            [
              20,
              1
            ]
          ]
        },
        "circle-radius": {
          "stops": [
            [
              4,
              3
            ],
            [
              20,
              5
            ]
          ]
        }
      }
    },
    {
      "id": "timetable-points-small-station",
      "type": "circle",
      "source": "prorail",
      "source-layer": "timetable-points",
      "minzoom": 9,
      "maxzoom": 20,
      "filter": [
        "all",
        [
          "==",
          "stationSize",
          "Klein"
        ]
      ],
      "layout": {
        "visibility": "visible"
      },
      "paint": {
        "circle-radius": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          4,
          3,
          20,
          7
        ],
        "circle-color": "#FFFFFF",
        "circle-stroke-width": {
          "stops": [
            [
              4,
              1
            ],
            [
              20,
              4
            ]
          ]
        },
        "circle-stroke-color": "rgb(178, 10, 47)"
      }
    },
    {
      "id": "timetable-points-medium-station",
      "type": "circle",
      "source": "prorail",
      "source-layer": "timetable-points",
      "minzoom": 7,
      "maxzoom": 20,
      "filter": [
        "all",
        [
          "==",
          "stationSize",
          "Middel"
        ]
      ],
      "layout": {
        "visibility": "visible"
      },
      "paint": {
        "circle-radius": {
          "stops": [
            [
              4,
              4
            ],
            [
              20,
              10
            ]
          ]
        },
        "circle-color": "#FFFFFF",
        "circle-stroke-width": {
          "stops": [
            [
              4,
              1
            ],
            [
              20,
              4
            ]
          ]
        },
        "circle-stroke-color": "rgb(178, 10, 47)"
      }
    },
    {
      "id": "timetable-points-large-station",
      "type": "circle",
      "source": "prorail",
      "source-layer": "timetable-points",
      "minzoom": 4,
      "maxzoom": 20,
      "filter": [
        "all",
        [
          "==",
          "stationSize",
          "Groot"
        ]
      ],
      "layout": {
        "visibility": "visible"
      },
      "paint": {
        "circle-radius": {
          "stops": [
            [
              4,
              5
            ],
            [
              20,
              12
            ]
          ]
        },
        "circle-color": "#FFFFFF",
        "circle-stroke-width": {
          "stops": [
            [
              4,
              1
            ],
            [
              20,
              4
            ]
          ]
        },
        "circle-stroke-color": "rgb(178, 10, 47)"
      }
    },
    {
      "id": "timetable-points-small-stations-name",
      "type": "symbol",
      "source": "prorail",
      "source-layer": "timetable-points",
      "minzoom": 10,
      "filter": [
        "all",
        [
          "==",
          "stationSize",
          "Klein"
        ]
      ],
      "layout": {
        "text-field": "{name}",
        "text-font": [
          "Noto Sans Bold"
        ],
        "text-justify": "left",
        "text-anchor": "top-left",
        "text-padding": 2,
        "text-ignore-placement": false,
        "text-offset": [
          0.4,
          0.4
        ],
        "text-size": {
          "stops": [
            [
              10,
              9
            ],
            [
              20,
              13
            ]
          ]
        }
      },
      "paint": {
        "text-color": "rgb(178, 10, 47)",
        "text-halo-color": "rgba(255, 255, 255, 1)",
        "text-halo-width": 4
      }
    },
    {
      "id": "timetable-points-medium-stations-name",
      "type": "symbol",
      "source": "prorail",
      "source-layer": "timetable-points",
      "minzoom": 9,
      "filter": [
        "all",
        [
          "==",
          "stationSize",
          "Middel"
        ]
      ],
      "layout": {
        "text-field": "{name}",
        "text-font": [
          "Noto Sans Bold"
        ],
        "text-justify": "left",
        "text-anchor": "top-left",
        "text-padding": 2,
        "text-ignore-placement": false,
        "text-offset": [
          0.4,
          0.4
        ],
        "text-size": {
          "stops": [
            [
              9,
              10
            ],
            [
              20,
              14
            ]
          ]
        }
      },
      "paint": {
        "text-color": "rgb(178, 10, 47)",
        "text-halo-color": "rgba(255, 255, 255, 1)",
        "text-halo-width": 4
      }
    },
    {
      "id": "timetable-points-large-stations-name",
      "type": "symbol",
      "source": "prorail",
      "source-layer": "timetable-points",
      "minzoom": 8,
      "filter": [
        "all",
        [
          "==",
          "stationSize",
          "Groot"
        ]
      ],
      "layout": {
        "text-field": "{name}",
        "text-font": [
          "Noto Sans Bold"
        ],
        "text-justify": "left",
        "text-anchor": "top-left",
        "text-padding": 2,
        "text-ignore-placement": false,
        "text-offset": [
          0.4,
          0.4
        ],
        "text-size": {
          "stops": [
            [
              8,
              12
            ],
            [
              20,
              16
            ]
          ]
        }
      },
      "paint": {
        "text-color": "rgb(178, 10, 47)",
        "text-halo-color": "rgba(255, 255, 255, 1)",
        "text-halo-width": 4
      }
    }
  ],
  "id": "prorail-latest",
  "owner": "NDW Location Services"
}
