{
  "version": 8,
  "name": "BeerKönig Light",
  "glyphs": "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf",
  "sources": {
    "openmaptiles": {
      "type": "vector",
      "url": "https://tiles.openfreemap.org/planet/latest"
    }
  },
  "layers": [
    {
      "id": "background",
      "type": "background",
      "paint": {
        "background-color": "#F3F0EF"
      }
    },
    {
      "id": "woodland",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landcover",
      "minzoom": 4,
      "paint": {
        "fill-color": "#E2EEDC"
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "wood"
        ],
        true,
        false
      ]
    },
    {
      "id": "grassland",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landcover",
      "minzoom": 8,
      "paint": {
        "fill-color": "#E5EEDC"
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "grass"
        ],
        true,
        false
      ]
    },
    {
      "id": "parks",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "park",
      "minzoom": 9,
      "paint": {
        "fill-color": "#C0E7B0"
      }
    },
    {
      "id": "built-up-areas",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landuse",
      "minzoom": 10,
      "paint": {
        "fill-color": "#ECE7E4"
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "residential",
          "industrial",
          "commercial"
        ],
        true,
        false
      ]
    },
    {
      "id": "campuses",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landuse",
      "minzoom": 12,
      "paint": {
        "fill-color": "#EDE4D1"
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "school",
          "university"
        ],
        true,
        false
      ]
    },
    {
      "id": "healthcare",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landuse",
      "minzoom": 12,
      "paint": {
        "fill-color": "#F0DFDF"
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "hospital"
        ],
        true,
        false
      ]
    },
    {
      "id": "rivers",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "waterway",
      "minzoom": 4,
      "paint": {
        "line-color": "#A4DAFA",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          4,
          0.55,
          7,
          0.7,
          12,
          1.4,
          17,
          4
        ]
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "river",
          "canal"
        ],
        true,
        false
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      }
    },
    {
      "id": "streams",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "waterway",
      "minzoom": 12,
      "paint": {
        "line-color": "#A4DAFA",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          12,
          0.6,
          17,
          1.8
        ]
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "stream",
          "ditch",
          "drain"
        ],
        true,
        false
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      }
    },
    {
      "id": "water",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "water",
      "minzoom": 0,
      "paint": {
        "fill-color": "#A4DAFA"
      }
    },
    {
      "id": "buildings",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "building",
      "minzoom": 14,
      "paint": {
        "fill-color": "#EAE5E2",
        "fill-outline-color": "#D8D0CC"
      }
    },
    {
      "id": "paths",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "minzoom": 14,
      "paint": {
        "line-color": "#D7D7DF",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          14,
          0.6,
          19,
          2.2
        ]
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "path",
          "track"
        ],
        true,
        false
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      }
    },
    {
      "id": "local-streets",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "minzoom": 11,
      "paint": {
        "line-color": "#BEC4D5",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          11,
          0.65,
          14,
          1.5,
          18,
          8
        ]
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "minor",
          "service"
        ],
        true,
        false
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      }
    },
    {
      "id": "secondary-roads",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "minzoom": 8,
      "paint": {
        "line-color": "#BEC4D5",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          8,
          0.55,
          13,
          1.8,
          18,
          11
        ]
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "secondary",
          "tertiary"
        ],
        true,
        false
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      }
    },
    {
      "id": "overview-motorways",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "minzoom": 4,
      "maxzoom": 6,
      "filter": [
        "==",
        [
          "get",
          "class"
        ],
        "motorway"
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#AAB0BF",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          4,
          0.55,
          6,
          0.6
        ],
        "line-opacity": 0.8
      }
    },
    {
      "id": "main-roads",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "minzoom": 6,
      "paint": {
        "line-color": "#AAB0BF",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          6,
          0.6,
          12,
          2.3,
          18,
          14
        ]
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "primary",
          "trunk",
          "motorway"
        ],
        true,
        false
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      }
    },
    {
      "id": "country-borders",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "boundary",
      "filter": [
        "all",
        [
          "==",
          [
            "get",
            "admin_level"
          ],
          2
        ],
        [
          "!=",
          [
            "get",
            "maritime"
          ],
          1
        ],
        [
          "!=",
          [
            "get",
            "disputed"
          ],
          1
        ],
        [
          "!",
          [
            "has",
            "claimed_by"
          ]
        ]
      ],
      "layout": {
        "line-join": "round"
      },
      "paint": {
        "line-color": "#909AA6",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          2,
          0.6,
          5,
          1,
          9,
          1.2
        ],
        "line-opacity": 0.8,
        "line-dasharray": [
          3,
          2
        ]
      }
    },
    {
      "id": "major-cities",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "place",
      "minzoom": 4,
      "paint": {
        "text-color": "#373F4D",
        "text-halo-color": "#FFFFFF",
        "text-halo-width": 1.15
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "city"
        ],
        true,
        false
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          4,
          11,
          10,
          15
        ],
        "symbol-sort-key": [
          "coalesce",
          [
            "get",
            "rank"
          ],
          99
        ]
      }
    },
    {
      "id": "country-names",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "place",
      "minzoom": 2,
      "maxzoom": 6,
      "filter": [
        "all",
        [
          "==",
          [
            "get",
            "class"
          ],
          "country"
        ],
        [
          "<=",
          [
            "coalesce",
            [
              "get",
              "rank"
            ],
            99
          ],
          3
        ]
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          2,
          10,
          5,
          12
        ],
        "text-transform": "uppercase",
        "text-letter-spacing": 0.12,
        "text-padding": 10,
        "symbol-sort-key": [
          "coalesce",
          [
            "get",
            "rank"
          ],
          99
        ]
      },
      "paint": {
        "text-color": "#697581",
        "text-halo-color": "#F3F0EF",
        "text-halo-width": 1
      }
    },
    {
      "id": "towns",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "place",
      "minzoom": 7,
      "paint": {
        "text-color": "#46505E",
        "text-halo-color": "#FFFFFF",
        "text-halo-width": 1.15
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "town"
        ],
        true,
        false
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          7,
          10,
          13,
          13
        ],
        "symbol-sort-key": [
          "coalesce",
          [
            "get",
            "rank"
          ],
          99
        ]
      }
    },
    {
      "id": "villages",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "place",
      "minzoom": 10,
      "paint": {
        "text-color": "#535D68",
        "text-halo-color": "#FFFFFF",
        "text-halo-width": 1.15
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "village",
          "hamlet"
        ],
        true,
        false
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": 11,
        "symbol-sort-key": [
          "coalesce",
          [
            "get",
            "rank"
          ],
          99
        ]
      }
    },
    {
      "id": "street-names",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "transportation_name",
      "minzoom": 13,
      "paint": {
        "text-color": "#46505E",
        "text-halo-color": "#FFFFFF",
        "text-halo-width": 1.15
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "motorway",
          "trunk",
          "primary",
          "secondary",
          "tertiary",
          "minor",
          "service"
        ],
        true,
        false
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          13,
          10,
          18,
          13
        ],
        "symbol-placement": "line"
      }
    },
    {
      "id": "selected-landmarks",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "poi",
      "minzoom": 15,
      "paint": {
        "text-color": "#576A59",
        "text-halo-color": "#FFFFFF",
        "text-halo-width": 1.15
      },
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "park",
          "museum",
          "attraction"
        ],
        true,
        false
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": 11
      }
    }
  ]
}
