{
  "version": 8,
  "name": "WKD Traffic types - Bus",
  "metadata": {
    "docs": [
      "https://docs.ndw.nu/handleidingen/wkd/wkd_verkeerstypen/"
    ]
  },
  "center": [
    5.41,
    52.15
  ],
  "zoom": 12,
  "light": {
    "anchor": "viewport"
  },
  "sources": {
    "wkdTrafficTypes": {
      "type": "vector",
      "tiles": [
        "https://maps.staging.ndw.nu/api/v1/wkdTrafficTypes/latest/mbtiles/segments/tiles/{z}/{x}/{y}.pbf"
      ]
    }
  },
  "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": "wkd-traffic-types-case",
      "type": "line",
      "source": "wkdTrafficTypes",
      "source-layer": "segments",
      "filter": [
        "all"
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgb(125, 125, 125)",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          4,
          2,
          20,
          12
        ],
        "line-opacity": 0.7
      }
    },
    {
      "id": "wkd-traffic-types-bus-forward",
      "type": "line",
      "source": "wkdTrafficTypes",
      "source-layer": "segments",
      "filter": [
        "==",
        "busForward",
        true
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "line-sort-key": [
          "to-number",
          [
            "get",
            "functionalRoadClass"
          ],
          0
        ]
      },
      "paint": {
        "line-offset": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          4,
          0.4,
          20,
          3
        ],
        "line-color": "#909",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          4,
          0.5,
          20,
          4
        ]
      }
    },
    {
      "id": "wkd-traffic-types-bus-backward",
      "type": "line",
      "source": "wkdTrafficTypes",
      "source-layer": "segments",
      "filter": [
        "all",
        [
          "==",
          "busBackward",
          true
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "line-sort-key": [
          "to-number",
          [
            "get",
            "functionalRoadClass"
          ],
          0
        ]
      },
      "paint": {
        "line-offset": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          4,
          -0.4,
          20,
          -3
        ],
        "line-color": "#909",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          4,
          0.5,
          20,
          4
        ]
      }
    }
  ],
  "id": "wkd-traffic-types-bus",
  "owner": "NDW Location Services"
}
