{
  "version": 8,
  "name": "OSM Public Transport",
  "metadata": {},
  "center": [
    5.41,
    52.15
  ],
  "zoom": 8,
  "bearing": 0,
  "pitch": 0,
  "sources": {
    "openmaptiles": {
      "type": "vector",
      "url": "https://maps.staging.ndw.nu/api/v1/osm/latest/mbtiles/osm/"
    }
  },
  "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": "osm-public-transport-subway",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "public_transport",
      "filter": [
        "all",
        [
          "==",
          "class",
          "subway"
        ],
        [
          "==",
          "$type",
          "LineString"
        ]
      ],
      "paint": {
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              8,
              1.2
            ],
            [
              20,
              6
            ]
          ]
        },
        "line-color": "hsla(347, 89%, 50%, 1)"
      }
    },
    {
      "id": "osm-public-transport-subway-dash",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "public_transport",
      "filter": [
        "all",
        [
          "==",
          "class",
          "subway"
        ],
        [
          "==",
          "$type",
          "LineString"
        ]
      ],
      "paint": {
        "line-color": "rgba(255, 255, 255, 1)",
        "line-dasharray": [
          2,
          2
        ],
        "line-width": {
          "base": 1,
          "stops": [
            [
              8,
              0.8
            ],
            [
              20,
              4
            ]
          ]
        }
      }
    },
    {
      "id": "osm-public-transport-tram",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "public_transport",
      "filter": [
        "all",
        [
          "==",
          "class",
          "tram"
        ],
        [
          "==",
          "$type",
          "LineString"
        ]
      ],
      "paint": {
        "line-width": {
          "base": 2.5,
          "stops": [
            [
              8,
              2.5
            ],
            [
              20,
              9
            ]
          ]
        },
        "line-color": "hsla(347, 89%, 45%, 1)"
      }
    },
    {
      "id": "osm-public-transport-tram-dash",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "public_transport",
      "filter": [
        "all",
        [
          "==",
          "class",
          "tram"
        ],
        [
          "==",
          "$type",
          "LineString"
        ]
      ],
      "paint": {
        "line-color": "rgba(255, 255, 255, 1)",
        "line-dasharray": [
          2,
          2
        ],
        "line-width": {
          "base": 1.5,
          "stops": [
            [
              8,
              1.5
            ],
            [
              20,
              7
            ]
          ]
        }
      }
    },
    {
      "id": "osm-public-transport-ferry",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "public_transport",
      "filter": [
        "all",
        [
          "==",
          "class",
          "ferry"
        ],
        [
          "==",
          "$type",
          "LineString"
        ]
      ],
      "paint": {
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              8,
              2
            ],
            [
              20,
              8
            ]
          ]
        },
        "line-dasharray": [
          2,
          2
        ],
        "line-color": "hsla(220, 89%, 45%, 1)"
      }
    },
    {
      "id": "osm-public-transport-bus",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "public_transport",
      "filter": [
        "all",
        [
          "in",
          "class",
          "trolleybus",
          "bus"
        ],
        [
          "==",
          "$type",
          "LineString"
        ]
      ],
      "paint": {
        "line-width": {
          "base": 1.2,
          "stops": [
            [
              8,
              2
            ],
            [
              20,
              8
            ]
          ]
        },
        "line-dasharray": [
          2,
          2
        ],
        "line-color": "hsla(347, 89%, 50%, 1)"
      }
    },
    {
      "id": "osm-public-transport-subway-ref",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "public_transport",
      "minzoom": 10,
      "maxzoom": 24,
      "filter": [
        "all",
        [
          "==",
          "class",
          "subway"
        ],
        [
          "==",
          "$type",
          "LineString"
        ]
      ],
      "layout": {
        "symbol-placement": "line",
        "text-field": "{ref}",
        "text-font": [
          "Noto Sans Bold"
        ],
        "text-rotation-alignment": "map",
        "text-size": {
          "stops": [
            [
              10,
              8
            ],
            [
              18,
              18
            ]
          ]
        },
        "text-pitch-alignment": "auto",
        "visibility": "visible",
        "text-ignore-placement": false,
        "text-allow-overlap": false,
        "text-anchor": "center"
      },
      "paint": {
        "text-color": "hsla(347, 89%, 37%, 1)",
        "text-halo-width": 3,
        "text-halo-color": "#fff"
      }
    },
    {
      "id": "osm-public-transport-ferry-ref",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "public_transport",
      "minzoom": 10,
      "maxzoom": 24,
      "filter": [
        "all",
        [
          "==",
          "class",
          "ferry"
        ],
        [
          "==",
          "$type",
          "LineString"
        ]
      ],
      "layout": {
        "symbol-placement": "line",
        "text-field": "{ref}",
        "text-font": [
          "Noto Sans Bold"
        ],
        "text-rotation-alignment": "map",
        "text-size": {
          "stops": [
            [
              10,
              8
            ],
            [
              18,
              18
            ]
          ]
        },
        "text-pitch-alignment": "auto",
        "visibility": "visible",
        "text-ignore-placement": false,
        "text-allow-overlap": false,
        "text-anchor": "center"
      },
      "paint": {
        "text-color": "hsla(220, 89%, 37%, 1)",
        "text-halo-width": 3,
        "text-halo-color": "#fff"
      }
    },
    {
      "id": "osm-public-transport-bus-ref-copy",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "public_transport",
      "minzoom": 10,
      "maxzoom": 24,
      "filter": [
        "all",
        [
          "in",
          "class",
          "trolleybus",
          "bus"
        ],
        [
          "==",
          "$type",
          "LineString"
        ]
      ],
      "layout": {
        "symbol-placement": "line",
        "text-field": "{ref}",
        "text-font": [
          "Noto Sans Bold"
        ],
        "text-rotation-alignment": "map",
        "text-size": {
          "stops": [
            [
              10,
              8
            ],
            [
              18,
              18
            ]
          ]
        },
        "text-pitch-alignment": "auto",
        "visibility": "visible",
        "text-ignore-placement": false,
        "text-allow-overlap": false,
        "text-anchor": "center"
      },
      "paint": {
        "text-color": "hsla(347, 89%, 37%, 1)",
        "text-halo-width": 3,
        "text-halo-color": "#fff"
      }
    },
    {
      "id": "osm-public-transport-tram-ref",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "public_transport",
      "minzoom": 10,
      "maxzoom": 24,
      "filter": [
        "all",
        [
          "==",
          "class",
          "tram"
        ],
        [
          "==",
          "$type",
          "LineString"
        ]
      ],
      "layout": {
        "symbol-placement": "line",
        "text-field": "{ref}",
        "text-font": [
          "Noto Sans Bold"
        ],
        "text-rotation-alignment": "map",
        "text-size": {
          "stops": [
            [
              10,
              8
            ],
            [
              18,
              18
            ]
          ]
        },
        "text-pitch-alignment": "auto",
        "visibility": "visible",
        "text-ignore-placement": false,
        "text-allow-overlap": false,
        "text-anchor": "center"
      },
      "paint": {
        "text-color": "hsla(347, 89%, 37%, 1)",
        "text-halo-width": 3,
        "text-halo-color": "#fff"
      }
    }
  ],
  "id": "osm-public-transport"
}
