{
  "version": 8,
  "name": "NDW Maps NWB Road Sections",
  "metadata": {
    "docs": [
      "https://docs.ndw.nu/handleidingen/nwb/nwb-basisstructuur/wegvakken/"
    ]
  },
  "center": [
    5.41,
    52.15
  ],
  "zoom": 12,
  "light": {
    "anchor": "viewport"
  },
  "sources": {
    "roadSections": {
      "type": "vector",
      "tiles": [
        "https://maps.staging.ndw.nu/api/v1/nwb/latest/mbtiles/roadSections/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": "road-sections-frc7-casing",
      "type": "line",
      "source": "roadSections",
      "source-layer": "roadSections",
      "filter": [
        "in",
        [
          "get",
          "functionalRoadClass"
        ],
        [
          "literal",
          [
            "7"
          ]
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "#cfcdca",
        "line-opacity": {
          "stops": [
            [
              4,
              0
            ],
            [
              12.5,
              1
            ]
          ]
        },
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              0.75
            ],
            [
              20,
              13
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc6-casing",
      "type": "line",
      "source": "roadSections",
      "source-layer": "roadSections",
      "filter": [
        "in",
        [
          "get",
          "functionalRoadClass"
        ],
        [
          "literal",
          [
            "6"
          ]
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "#cfcdca",
        "line-opacity": {
          "stops": [
            [
              4,
              0
            ],
            [
              12.5,
              1
            ]
          ]
        },
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              0.75
            ],
            [
              20,
              17
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc5-casing",
      "type": "line",
      "source": "roadSections",
      "source-layer": "roadSections",
      "filter": [
        "in",
        [
          "get",
          "functionalRoadClass"
        ],
        [
          "literal",
          [
            "5"
          ]
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "#cfcdca",
        "line-opacity": {
          "stops": [
            [
              4,
              0
            ],
            [
              12.5,
              1
            ]
          ]
        },
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1.2
            ],
            [
              20,
              19
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc4-casing",
      "type": "line",
      "source": "roadSections",
      "source-layer": "roadSections",
      "filter": [
        "in",
        [
          "get",
          "functionalRoadClass"
        ],
        [
          "literal",
          [
            "4"
          ]
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "#cfcdca",
        "line-opacity": {
          "stops": [
            [
              4,
              0
            ],
            [
              12.5,
              1
            ]
          ]
        },
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1.2
            ],
            [
              20,
              21
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc3-casing",
      "type": "line",
      "source": "roadSections",
      "source-layer": "roadSections",
      "filter": [
        "in",
        [
          "get",
          "functionalRoadClass"
        ],
        [
          "literal",
          [
            "3"
          ]
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "#e9ac77",
        "line-opacity": 1,
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1.2
            ],
            [
              20,
              23
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc2-casing",
      "type": "line",
      "source": "roadSections",
      "source-layer": "roadSections",
      "minzoom": 0,
      "filter": [
        "in",
        [
          "get",
          "functionalRoadClass"
        ],
        [
          "literal",
          [
            "2"
          ]
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "#e9ac77",
        "line-opacity": 1,
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1.5
            ],
            [
              20,
              25
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc1-casing",
      "type": "line",
      "source": "roadSections",
      "source-layer": "roadSections",
      "minzoom": 4,
      "filter": [
        "in",
        [
          "get",
          "functionalRoadClass"
        ],
        [
          "literal",
          [
            "0",
            "1"
          ]
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "#e9ac77",
        "line-opacity": {
          "stops": [
            [
              4,
              0
            ],
            [
              5,
              1
            ]
          ]
        },
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              2
            ],
            [
              20,
              27
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc7",
      "type": "line",
      "source": "roadSections",
      "source-layer": "roadSections",
      "filter": [
        "in",
        [
          "get",
          "functionalRoadClass"
        ],
        [
          "literal",
          [
            "7"
          ]
        ]
      ],
      "layout": {
        "visibility": "visible",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#fff",
        "line-opacity": 1,
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              0.5
            ],
            [
              20,
              11
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc6",
      "type": "line",
      "source": "roadSections",
      "source-layer": "roadSections",
      "filter": [
        "in",
        [
          "get",
          "functionalRoadClass"
        ],
        [
          "literal",
          [
            "6"
          ]
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "#fff",
        "line-opacity": 1,
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              0.5
            ],
            [
              20,
              15
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc5",
      "type": "line",
      "source": "roadSections",
      "source-layer": "roadSections",
      "filter": [
        "in",
        [
          "get",
          "functionalRoadClass"
        ],
        [
          "literal",
          [
            "5"
          ]
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "#fff",
        "line-opacity": 1,
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1
            ],
            [
              20,
              17
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc4",
      "type": "line",
      "source": "roadSections",
      "source-layer": "roadSections",
      "filter": [
        "in",
        [
          "get",
          "functionalRoadClass"
        ],
        [
          "literal",
          [
            "4"
          ]
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "#fff",
        "line-opacity": 1,
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1.1
            ],
            [
              20,
              19
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc3",
      "type": "line",
      "source": "roadSections",
      "source-layer": "roadSections",
      "filter": [
        "in",
        [
          "get",
          "functionalRoadClass"
        ],
        [
          "literal",
          [
            "3"
          ]
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "#fd8",
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1
            ],
            [
              20,
              21
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc2",
      "type": "line",
      "source": "roadSections",
      "source-layer": "roadSections",
      "minzoom": 4,
      "filter": [
        "in",
        [
          "get",
          "functionalRoadClass"
        ],
        [
          "literal",
          [
            "2"
          ]
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "#fea",
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1
            ],
            [
              20,
              23
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc1",
      "type": "line",
      "source": "roadSections",
      "source-layer": "roadSections",
      "minzoom": 4,
      "filter": [
        "in",
        [
          "get",
          "functionalRoadClass"
        ],
        [
          "literal",
          [
            "0",
            "1"
          ]
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "#fc8",
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1.5
            ],
            [
              20,
              25
            ]
          ]
        }
      }
    },
    {
      "id": "road-oneway",
      "type": "symbol",
      "source": "roadSections",
      "source-layer": "roadSections",
      "minzoom": 15,
      "filter": [
        "in",
        [
          "get",
          "drivingDirection"
        ],
        [
          "literal",
          [
            "H"
          ]
        ]
      ],
      "layout": {
        "icon-image": "oneway",
        "icon-padding": 2,
        "icon-rotate": 90,
        "icon-rotation-alignment": "map",
        "icon-size": {
          "stops": [
            [
              15,
              0.5
            ],
            [
              19,
              1
            ]
          ]
        },
        "symbol-placement": "line",
        "symbol-spacing": 75
      },
      "paint": {
        "icon-opacity": 0.5
      }
    },
    {
      "id": "road-oneway-opposite",
      "type": "symbol",
      "source": "roadSections",
      "source-layer": "roadSections",
      "minzoom": 15,
      "filter": [
        "in",
        [
          "get",
          "drivingDirection"
        ],
        [
          "literal",
          [
            "T"
          ]
        ]
      ],
      "layout": {
        "icon-image": "oneway",
        "icon-padding": 2,
        "icon-rotate": -90,
        "icon-rotation-alignment": "map",
        "icon-size": {
          "stops": [
            [
              15,
              0.5
            ],
            [
              19,
              1
            ]
          ]
        },
        "symbol-placement": "line",
        "symbol-spacing": 75
      },
      "paint": {
        "icon-opacity": 0.5
      }
    }
  ],
  "id": "nwb-road-sections",
  "owner": "NDW Location Services"
}
