{
  "version": 8,
  "name": "FCD Roads overlay",
  "metadata": {
    "original": "https://github.com/openmaptiles/osm-bright-gl-style"
  },
  "center": [
    5.41,
    52.15
  ],
  "zoom": 8,
  "bearing": 0,
  "pitch": 0,
  "sources": {
    "segments": {
      "type": "vector",
      "tiles": [
        "https://maps.staging.ndw.nu/api/v1/fcd/latest/mbtiles/segments/tiles/{z}/{x}/{y}.pbf?token=f8b6b695-2cad-44e8-b7e8-a97f9fc1c236"
      ],
      "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": "road-sections-frc7-casing",
      "type": "line",
      "source": "segments",
      "source-layer": "segments",
      "filter": [
        "all",
        [
          "==",
          "roadClass",
          7
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgba(210, 210, 230, 0.8)",
        "line-opacity": {
          "stops": [
            [
              4,
              0
            ],
            [
              9,
              1
            ]
          ]
        },
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              0.75
            ],
            [
              20,
              13
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc6-casing",
      "type": "line",
      "source": "segments",
      "source-layer": "segments",
      "filter": [
        "all",
        [
          "==",
          "roadClass",
          6
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgba(210, 210, 230, 0.8)",
        "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": "segments",
      "source-layer": "segments",
      "filter": [
        "all",
        [
          "==",
          "roadClass",
          5
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgba(210, 210, 230, 0.8)",
        "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": "segments",
      "source-layer": "segments",
      "filter": [
        "all",
        [
          "==",
          "roadClass",
          4
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgba(210, 210, 230, 0.8)",
        "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": "segments",
      "source-layer": "segments",
      "filter": [
        "all",
        [
          "==",
          "roadClass",
          3
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgba(210, 210, 230, 0.8)",
        "line-opacity": 1,
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1.2
            ],
            [
              20,
              23
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc2-casing",
      "type": "line",
      "source": "segments",
      "source-layer": "segments",
      "minzoom": 0,
      "filter": [
        "all",
        [
          "==",
          "roadClass",
          2
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgba(210, 210, 230, 0.8)",
        "line-opacity": 1,
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1.5
            ],
            [
              20,
              25
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc1-casing",
      "type": "line",
      "source": "segments",
      "source-layer": "segments",
      "minzoom": 4,
      "filter": [
        "all",
        [
          "==",
          "roadClass",
          1
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgba(186, 185, 218, 1)",
        "line-opacity": {
          "stops": [
            [
              4,
              0
            ],
            [
              5,
              1
            ]
          ]
        },
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              2
            ],
            [
              20,
              27
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc7",
      "type": "line",
      "source": "segments",
      "source-layer": "segments",
      "filter": [
        "all",
        [
          "==",
          "roadClass",
          7
        ]
      ],
      "layout": {
        "visibility": "visible",
        "line-join": "round"
      },
      "paint": {
        "line-color": "rgba(230, 230, 256, 0.8)",
        "line-opacity": 1,
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              0.5
            ],
            [
              11,
              1
            ],
            [
              20,
              7
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc6",
      "type": "line",
      "source": "segments",
      "source-layer": "segments",
      "filter": [
        "all",
        [
          "==",
          "roadClass",
          6
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgba(230, 230, 256, 0.8)",
        "line-opacity": 1,
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              0.5
            ],
            [
              11,
              1.5
            ],
            [
              20,
              15
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc5",
      "type": "line",
      "source": "segments",
      "source-layer": "segments",
      "filter": [
        "all",
        [
          "==",
          "roadClass",
          5
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgba(230, 230, 256, 0.8)",
        "line-opacity": 1,
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              0.8
            ],
            [
              11,
              1.75
            ],
            [
              20,
              17
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc4",
      "type": "line",
      "source": "segments",
      "source-layer": "segments",
      "filter": [
        "all",
        [
          "==",
          "roadClass",
          4
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgba(230, 230, 256, 0.8)",
        "line-opacity": 1,
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1.1
            ],
            [
              10,
              2
            ],
            [
              20,
              19
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc3",
      "type": "line",
      "source": "segments",
      "source-layer": "segments",
      "filter": [
        "all",
        [
          "==",
          "roadClass",
          3
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgba(230, 230, 256, 0.8)",
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1
            ],
            [
              20,
              21
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc2",
      "type": "line",
      "source": "segments",
      "source-layer": "segments",
      "minzoom": 4,
      "filter": [
        "all",
        [
          "==",
          "roadClass",
          2
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgba(230, 230, 256, 0.8)",
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1
            ],
            [
              20,
              23
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc1",
      "type": "line",
      "source": "segments",
      "source-layer": "segments",
      "minzoom": 4,
      "filter": [
        "all",
        [
          "==",
          "roadClass",
          1
        ]
      ],
      "layout": {
        "line-cap": "butt",
        "line-join": "round",
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgba(230, 230, 256, 0.8)",
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              4,
              1.5
            ],
            [
              20,
              25
            ]
          ]
        }
      }
    },
    {
      "id": "road-sections-frc6-4-ids",
      "type": "symbol",
      "source": "segments",
      "source-layer": "segments",
      "minzoom": 14,
      "filter": [
        "all",
        [
          "in",
          "roadClass",
          4,
          5,
          6
        ]
      ],
      "layout": {
        "symbol-placement": "line",
        "text-field": "{segmentId}",
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-rotation-alignment": "map",
        "text-size": {
          "base": 1,
          "stops": [
            [
              14,
              7
            ],
            [
              18,
              10
            ]
          ]
        },
        "visibility": "visible"
      },
      "paint": {
        "text-color": "#765",
        "text-halo-blur": 0.5,
        "text-halo-width": 1
      }
    },
    {
      "id": "road-sections-frc3-1-ids",
      "type": "symbol",
      "source": "segments",
      "source-layer": "segments",
      "minzoom": 12,
      "filter": [
        "all",
        [
          "in",
          "roadClass",
          1,
          2,
          3
        ]
      ],
      "layout": {
        "symbol-placement": "line",
        "text-field": "{segmentId}",
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-rotation-alignment": "map",
        "text-size": {
          "base": 1,
          "stops": [
            [
              13,
              8
            ],
            [
              14,
              10
            ]
          ]
        },
        "visibility": "visible"
      },
      "paint": {
        "text-color": "#765",
        "text-halo-blur": 0.5,
        "text-halo-width": 1
      }
    }
  ],
  "id": "osm-with-fcd-roads"
}