{
  "tiles": "https://tiles.jasontally.com/basemap.pmtiles",
  "note": "template plus palettes. The page fills {{key}} placeholders with colours and {{show:id}} with visible or none, so what it shows is exactly what you copy.",
  "template": {
    "version": 8,
    "name": "Protomaps Basemap — {{name}}",
    "metadata": {
      "jasontally:tiles": "https://tiles.jasontally.com/basemap.pmtiles",
      "jasontally:flavor": "{{flavor}}",
      "jasontally:note": "Free to use, no API key, no rate limit, no service level guarantee. Tiles are Protomaps Basemap derived from OpenStreetMap."
    },
    "center": [
      2.35,
      48.85
    ],
    "zoom": 4.2,
    "bearing": 0,
    "pitch": 0,
    "glyphs": "https://tiles.jasontally.com/font/{fontstack}/{range}.pbf",
    "sprite": "https://tiles.jasontally.com/sprites/v4/{{sprite}}",
    "sources": {
      "protomaps": {
        "type": "vector",
        "url": "pmtiles://https://tiles.jasontally.com/basemap.pmtiles",
        "attribution": "<a href=\"https://www.openstreetmap.org/copyright\">© OpenStreetMap contributors</a>"
      }
    },
    "layers": [
      {
        "id": "background",
        "type": "background",
        "paint": {
          "background-color": "{{background}}"
        }
      },
      {
        "id": "earth",
        "type": "fill",
        "source": "protomaps",
        "source-layer": "earth",
        "paint": {
          "fill-color": [
            "match",
            [
              "get",
              "kind"
            ],
            "glacier",
            "{{ice}}",
            "bare_rock",
            "{{rock}}",
            "sand",
            "{{sand}}",
            "{{earth}}"
          ],
          "fill-outline-color": "{{landEdge}}"
        }
      },
      {
        "id": "landcover",
        "type": "fill",
        "source": "protomaps",
        "source-layer": "landcover",
        "paint": {
          "fill-color": [
            "match",
            [
              "get",
              "kind"
            ],
            "forest",
            "{{forest}}",
            "grass",
            "{{grass}}",
            "farmland",
            "{{farmland}}",
            "scrub",
            "{{scrub}}",
            "ice",
            "{{ice}}",
            "sand",
            "{{sand}}",
            "wetland",
            "{{wetland}}",
            "{{landcover}}"
          ],
          "fill-opacity": 0.9
        },
        "visibility": "{{show:landcover}}"
      },
      {
        "id": "landuse",
        "type": "fill",
        "source": "protomaps",
        "source-layer": "landuse",
        "paint": {
          "fill-color": [
            "match",
            [
              "get",
              "kind"
            ],
            "park",
            "{{park}}",
            "forest",
            "{{forest}}",
            "wood",
            "{{forest}}",
            "farmland",
            "{{farmland}}",
            "grass",
            "{{grass}}",
            "meadow",
            "{{grass}}",
            "residential",
            "{{residential}}",
            "commercial",
            "{{commercial}}",
            "industrial",
            "{{industrial}}",
            "school",
            "{{school}}",
            "university",
            "{{school}}",
            "hospital",
            "{{school}}",
            "cemetery",
            "{{park}}",
            "nature_reserve",
            "{{park}}",
            "protected_area",
            "{{park}}",
            "golf_course",
            "{{grass}}",
            "garden",
            "{{park}}",
            "playground",
            "{{playground}}",
            "pitch",
            "{{playground}}",
            "stadium",
            "{{playground}}",
            "recreation_ground",
            "{{playground}}",
            "zoo",
            "{{park}}",
            "beach",
            "{{sand}}",
            "village_green",
            "{{grass}}",
            "allotments",
            "{{farmland}}",
            "scrub",
            "{{scrub}}",
            "wetland",
            "{{wetland}}",
            "glacier",
            "{{ice}}",
            "aerodrome",
            "{{industrial}}",
            "military",
            "{{industrial}}",
            "landfill",
            "{{industrial}}",
            "quarry",
            "{{rock}}",
            "{{landuse}}"
          ],
          "fill-opacity": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            2,
            0,
            6,
            0.55
          ]
        },
        "visibility": "{{show:landuse}}"
      },
      {
        "id": "water",
        "type": "fill",
        "source": "protomaps",
        "source-layer": "water",
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "ocean",
            "lake",
            "water",
            "reservoir",
            "playa",
            "swimming_pool"
          ],
          true,
          false
        ],
        "paint": {
          "fill-color": "{{water}}",
          "fill-outline-color": "{{shore}}"
        },
        "visibility": "{{show:water}}"
      },
      {
        "id": "water-line",
        "type": "line",
        "source": "protomaps",
        "source-layer": "water",
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "river",
            "stream",
            "canal",
            "drain",
            "ditch"
          ],
          true,
          false
        ],
        "paint": {
          "line-color": "{{waterLine}}",
          "line-width": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            3,
            0.6,
            10,
            2
          ]
        },
        "visibility": "{{show:water}}"
      },
      {
        "id": "boundary-region",
        "type": "line",
        "source": "protomaps",
        "source-layer": "boundaries",
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "region"
          ],
          true,
          false
        ],
        "paint": {
          "line-color": "{{boundary}}",
          "line-width": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            2,
            2.4,
            6,
            3
          ],
          "line-opacity": 1
        },
        "visibility": "{{show:boundaries}}"
      },
      {
        "id": "boundary-country",
        "type": "line",
        "source": "protomaps",
        "source-layer": "boundaries",
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "country"
          ],
          true,
          false
        ],
        "paint": {
          "line-color": "{{boundary}}",
          "line-width": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            0,
            3.4,
            6,
            3.3
          ],
          "line-opacity": 1
        },
        "visibility": "{{show:boundaries}}"
      },
      {
        "id": "road-highway-casing",
        "type": "line",
        "source": "protomaps",
        "source-layer": "roads",
        "minzoom": 3,
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "highway"
          ],
          true,
          false
        ],
        "layout": {
          "line-cap": "round",
          "line-join": "round"
        },
        "paint": {
          "line-color": "{{roadCasing}}",
          "line-width": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            3,
            2.2,
            15,
            2.8
          ]
        },
        "visibility": "{{show:roads}}"
      },
      {
        "id": "road-highway",
        "type": "line",
        "source": "protomaps",
        "source-layer": "roads",
        "minzoom": 3,
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "highway"
          ],
          true,
          false
        ],
        "layout": {
          "line-cap": "round",
          "line-join": "round"
        },
        "paint": {
          "line-color": [
            "case",
            [
              "in",
              [
                "get",
                "kind"
              ],
              [
                "literal",
                [
                  "motorway",
                  "trunk"
                ]
              ]
            ],
            "{{roadMajor}}",
            "{{road}}"
          ],
          "line-width": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            3,
            2.2,
            15,
            2.8
          ]
        },
        "visibility": "{{show:roads}}"
      },
      {
        "id": "road-major-casing",
        "type": "line",
        "source": "protomaps",
        "source-layer": "roads",
        "minzoom": 4,
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "major_road"
          ],
          true,
          false
        ],
        "layout": {
          "line-cap": "round",
          "line-join": "round"
        },
        "paint": {
          "line-color": "{{roadCasing}}",
          "line-width": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            4,
            1.7,
            15,
            2.5
          ]
        },
        "visibility": "{{show:roads}}"
      },
      {
        "id": "road-major",
        "type": "line",
        "source": "protomaps",
        "source-layer": "roads",
        "minzoom": 4,
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "major_road"
          ],
          true,
          false
        ],
        "layout": {
          "line-cap": "round",
          "line-join": "round"
        },
        "paint": {
          "line-color": [
            "case",
            [
              "in",
              [
                "get",
                "kind"
              ],
              [
                "literal",
                [
                  "motorway",
                  "trunk"
                ]
              ]
            ],
            "{{roadMajor}}",
            "{{road}}"
          ],
          "line-width": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            4,
            1.7,
            15,
            2.5
          ]
        },
        "visibility": "{{show:roads}}"
      },
      {
        "id": "road-minor-casing",
        "type": "line",
        "source": "protomaps",
        "source-layer": "roads",
        "minzoom": 7,
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "minor_road"
          ],
          true,
          false
        ],
        "layout": {
          "line-cap": "round",
          "line-join": "round"
        },
        "paint": {
          "line-color": "{{roadCasing}}",
          "line-width": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            7,
            0.8,
            15,
            1.7
          ]
        },
        "visibility": "{{show:roads}}"
      },
      {
        "id": "road-minor",
        "type": "line",
        "source": "protomaps",
        "source-layer": "roads",
        "minzoom": 7,
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "minor_road"
          ],
          true,
          false
        ],
        "layout": {
          "line-cap": "round",
          "line-join": "round"
        },
        "paint": {
          "line-color": [
            "case",
            [
              "in",
              [
                "get",
                "kind"
              ],
              [
                "literal",
                [
                  "motorway",
                  "trunk"
                ]
              ]
            ],
            "{{roadMajor}}",
            "{{road}}"
          ],
          "line-width": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            7,
            0.8,
            15,
            1.7
          ]
        },
        "visibility": "{{show:roads}}"
      },
      {
        "id": "road-path-casing",
        "type": "line",
        "source": "protomaps",
        "source-layer": "roads",
        "minzoom": 12,
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "path"
          ],
          true,
          false
        ],
        "layout": {
          "line-cap": "round",
          "line-join": "round"
        },
        "paint": {
          "line-color": "{{roadCasing}}",
          "line-width": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            12,
            0.35,
            15,
            1
          ]
        },
        "visibility": "{{show:roads}}"
      },
      {
        "id": "road-path",
        "type": "line",
        "source": "protomaps",
        "source-layer": "roads",
        "minzoom": 12,
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "path"
          ],
          true,
          false
        ],
        "layout": {
          "line-cap": "round",
          "line-join": "round"
        },
        "paint": {
          "line-color": [
            "case",
            [
              "in",
              [
                "get",
                "kind"
              ],
              [
                "literal",
                [
                  "motorway",
                  "trunk"
                ]
              ]
            ],
            "{{roadMajor}}",
            "{{road}}"
          ],
          "line-width": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            12,
            0.35,
            15,
            1
          ]
        },
        "visibility": "{{show:roads}}"
      },
      {
        "id": "road-rail-casing",
        "type": "line",
        "source": "protomaps",
        "source-layer": "roads",
        "minzoom": 11,
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "rail"
          ],
          true,
          false
        ],
        "layout": {
          "line-cap": "round",
          "line-join": "round"
        },
        "paint": {
          "line-color": "{{roadCasing}}",
          "line-width": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            11,
            0.5,
            15,
            1.3
          ]
        },
        "visibility": "{{show:roads}}"
      },
      {
        "id": "road-rail",
        "type": "line",
        "source": "protomaps",
        "source-layer": "roads",
        "minzoom": 11,
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "rail"
          ],
          true,
          false
        ],
        "layout": {
          "line-cap": "round",
          "line-join": "round"
        },
        "paint": {
          "line-color": [
            "case",
            [
              "in",
              [
                "get",
                "kind"
              ],
              [
                "literal",
                [
                  "motorway",
                  "trunk"
                ]
              ]
            ],
            "{{roadMajor}}",
            "{{road}}"
          ],
          "line-width": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            11,
            0.5,
            15,
            1.3
          ]
        },
        "visibility": "{{show:roads}}"
      },
      {
        "id": "buildings",
        "type": "fill",
        "source": "protomaps",
        "source-layer": "buildings",
        "minzoom": 12,
        "paint": {
          "fill-color": "{{building}}",
          "fill-outline-color": "{{buildingOutline}}",
          "fill-opacity": [
            "interpolate",
            [
              "linear"
            ],
            [
              "coalesce",
              [
                "to-number",
                [
                  "get",
                  "height"
                ],
                0
              ],
              0
            ],
            0,
            0.55,
            40,
            0.9
          ]
        },
        "visibility": "{{show:buildings}}"
      },
      {
        "id": "place-country",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "places",
        "filter": [
          "all",
          [
            "match",
            [
              "get",
              "kind"
            ],
            [
              "country"
            ],
            true,
            false
          ],
          [
            "<=",
            [
              "get",
              "min_zoom"
            ],
            1
          ]
        ],
        "layout": {
          "text-field": [
            "coalesce",
            [
              "get",
              "name:en"
            ],
            [
              "get",
              "name"
            ]
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            0,
            9.75,
            4,
            13
          ],
          "text-transform": "uppercase",
          "text-letter-spacing": 0.08,
          "text-max-width": 7
        },
        "paint": {
          "text-color": "{{label}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.4
        },
        "visibility": "{{show:labels}}"
      },
      {
        "id": "place-region",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "places",
        "filter": [
          "all",
          [
            "match",
            [
              "get",
              "kind"
            ],
            [
              "region"
            ],
            true,
            false
          ],
          [
            "<=",
            [
              "get",
              "min_zoom"
            ],
            5
          ]
        ],
        "layout": {
          "text-field": [
            "coalesce",
            [
              "get",
              "name:en"
            ],
            [
              "get",
              "name"
            ]
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            4,
            7.5,
            8,
            10
          ],
          "text-transform": "none",
          "text-letter-spacing": 0.08,
          "text-max-width": 7
        },
        "paint": {
          "text-color": "{{label}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.2
        },
        "visibility": "{{show:labels}}"
      },
      {
        "id": "place-locality",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "places",
        "filter": [
          "all",
          [
            "match",
            [
              "get",
              "kind"
            ],
            [
              "locality"
            ],
            true,
            false
          ],
          [
            "<=",
            [
              "get",
              "min_zoom"
            ],
            6
          ]
        ],
        "layout": {
          "text-field": [
            "coalesce",
            [
              "get",
              "name:en"
            ],
            [
              "get",
              "name"
            ]
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            5,
            8.25,
            9,
            11
          ],
          "text-transform": "none",
          "text-letter-spacing": 0.08,
          "text-max-width": 7
        },
        "paint": {
          "text-color": "{{label}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.3
        },
        "visibility": "{{show:labels}}"
      },
      {
        "id": "place-macrohood",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "places",
        "filter": [
          "all",
          [
            "match",
            [
              "get",
              "kind"
            ],
            [
              "macrohood"
            ],
            true,
            false
          ],
          [
            "<=",
            [
              "get",
              "min_zoom"
            ],
            12
          ]
        ],
        "layout": {
          "text-field": [
            "coalesce",
            [
              "get",
              "name:en"
            ],
            [
              "get",
              "name"
            ]
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            11,
            7.5,
            15,
            10
          ],
          "text-transform": "none",
          "text-letter-spacing": 0.08,
          "text-max-width": 7
        },
        "paint": {
          "text-color": "{{label}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.2
        },
        "visibility": "{{show:labels}}"
      },
      {
        "id": "place-neighbourhood",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "places",
        "filter": [
          "all",
          [
            "match",
            [
              "get",
              "kind"
            ],
            [
              "neighbourhood"
            ],
            true,
            false
          ],
          [
            "<=",
            [
              "get",
              "min_zoom"
            ],
            14
          ]
        ],
        "layout": {
          "text-field": [
            "coalesce",
            [
              "get",
              "name:en"
            ],
            [
              "get",
              "name"
            ]
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            13,
            7.5,
            17,
            10
          ],
          "text-transform": "none",
          "text-letter-spacing": 0.08,
          "text-max-width": 7
        },
        "paint": {
          "text-color": "{{label}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.2
        },
        "visibility": "{{show:labels}}"
      },
      {
        "id": "poi",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "pois",
        "minzoom": 11,
        "filter": [
          "all",
          [
            "match",
            [
              "get",
              "kind"
            ],
            [
              "volcano",
              "hospital",
              "place_of_worship",
              "castle",
              "fort",
              "aquarium"
            ],
            true,
            false
          ],
          [
            "<=",
            [
              "get",
              "min_zoom"
            ],
            12
          ]
        ],
        "layout": {
          "text-field": [
            "coalesce",
            [
              "get",
              "name:en"
            ],
            [
              "get",
              "name"
            ]
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            11,
            10,
            16,
            12
          ],
          "text-offset": [
            0,
            0.9
          ],
          "text-anchor": "top",
          "text-max-width": 8
        },
        "paint": {
          "text-color": "{{poiLabel}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.2
        },
        "visibility": "{{show:labels}}"
      },
      {
        "id": "water-label-ocean",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "water",
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "ocean"
          ],
          true,
          false
        ],
        "minzoom": 0,
        "layout": {
          "text-field": [
            "coalesce",
            [
              "get",
              "name:en"
            ],
            [
              "get",
              "name"
            ]
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            0,
            8.75,
            3,
            12.5
          ],
          "text-rotation-alignment": "viewport",
          "symbol-placement": "point",
          "text-offset": [
            0,
            0
          ],
          "text-anchor": "top",
          "text-max-width": 8,
          "text-letter-spacing": 0.14
        },
        "paint": {
          "text-color": "{{label}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.1
        },
        "visibility": "{{show:waterNames}}"
      },
      {
        "id": "water-label-lake",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "water",
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "lake",
            "reservoir",
            "playa",
            "bay",
            "strait",
            "sea"
          ],
          true,
          false
        ],
        "minzoom": 6,
        "layout": {
          "text-field": [
            "coalesce",
            [
              "get",
              "name:en"
            ],
            [
              "get",
              "name"
            ]
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            6,
            7.699999999999999,
            9,
            11
          ],
          "text-rotation-alignment": "viewport",
          "symbol-placement": "point",
          "text-offset": [
            0,
            0
          ],
          "text-anchor": "top",
          "text-max-width": 8,
          "text-letter-spacing": 0
        },
        "paint": {
          "text-color": "{{label}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.1
        },
        "visibility": "{{show:waterNames}}"
      },
      {
        "id": "water-label-river",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "water",
        "filter": [
          "match",
          [
            "get",
            "kind"
          ],
          [
            "river",
            "stream",
            "canal"
          ],
          true,
          false
        ],
        "minzoom": 9,
        "layout": {
          "text-field": [
            "coalesce",
            [
              "get",
              "name:en"
            ],
            [
              "get",
              "name"
            ]
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            9,
            7,
            12,
            10
          ],
          "text-rotation-alignment": "map",
          "symbol-placement": "line",
          "text-offset": [
            0,
            0.9
          ],
          "text-anchor": "top",
          "text-max-width": 8,
          "text-letter-spacing": 0
        },
        "paint": {
          "text-color": "{{label}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.1
        },
        "visibility": "{{show:waterNames}}"
      },
      {
        "id": "road-label-major",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "roads",
        "filter": [
          "all",
          [
            "match",
            [
              "get",
              "kind"
            ],
            [
              "highway",
              "major_road"
            ],
            true,
            false
          ],
          [
            "<=",
            [
              "get",
              "min_zoom"
            ],
            11
          ]
        ],
        "minzoom": 11,
        "layout": {
          "text-field": [
            "coalesce",
            [
              "get",
              "name:en"
            ],
            [
              "get",
              "name"
            ]
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": 10.5,
          "symbol-placement": "line",
          "symbol-spacing": 250,
          "text-rotation-alignment": "map",
          "text-max-width": 6,
          "text-padding": 1
        },
        "paint": {
          "text-color": "{{label}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.1
        },
        "visibility": "{{show:roadLabels}}"
      },
      {
        "id": "road-label-mid",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "roads",
        "filter": [
          "all",
          [
            "match",
            [
              "get",
              "kind"
            ],
            [
              "minor_road"
            ],
            true,
            false
          ],
          [
            "<=",
            [
              "get",
              "min_zoom"
            ],
            13
          ]
        ],
        "minzoom": 13,
        "layout": {
          "text-field": [
            "coalesce",
            [
              "get",
              "name:en"
            ],
            [
              "get",
              "name"
            ]
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": 10,
          "symbol-placement": "line",
          "symbol-spacing": 250,
          "text-rotation-alignment": "map",
          "text-max-width": 6,
          "text-padding": 1
        },
        "paint": {
          "text-color": "{{label}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.1
        },
        "visibility": "{{show:roadLabels}}"
      },
      {
        "id": "road-label-local",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "roads",
        "filter": [
          "all",
          [
            "match",
            [
              "get",
              "kind"
            ],
            [
              "minor_road"
            ],
            true,
            false
          ],
          [
            "<=",
            [
              "get",
              "min_zoom"
            ],
            15
          ]
        ],
        "minzoom": 15,
        "layout": {
          "text-field": [
            "coalesce",
            [
              "get",
              "name:en"
            ],
            [
              "get",
              "name"
            ]
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": 9.5,
          "symbol-placement": "line",
          "symbol-spacing": 250,
          "text-rotation-alignment": "map",
          "text-max-width": 6,
          "text-padding": 1
        },
        "paint": {
          "text-color": "{{label}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.1
        },
        "visibility": "{{show:roadLabels}}"
      },
      {
        "id": "poi-icon",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "pois",
        "filter": [
          "all",
          [
            "match",
            [
              "get",
              "kind"
            ],
            [
              "airport",
              "zoo",
              "library",
              "garden",
              "marina",
              "harbour",
              "port",
              "museum",
              "park",
              "national_park",
              "peak",
              "stadium",
              "railway_station",
              "university"
            ],
            true,
            false
          ],
          [
            "<=",
            [
              "get",
              "min_zoom"
            ],
            13
          ]
        ],
        "minzoom": 13,
        "layout": {
          "icon-image": [
            "match",
            [
              "get",
              "kind"
            ],
            "aerodrome",
            "aerodrome",
            "airport",
            "aerodrome",
            "airfield",
            "aerodrome",
            "animal",
            "animal",
            "zoo",
            "zoo",
            "artwork",
            "artwork",
            "art",
            "artwork",
            "attraction",
            "attraction",
            "bar",
            "bar",
            "cafe",
            "cafe",
            "fast_food",
            "fast_food",
            "restaurant",
            "restaurant",
            "bench",
            "bench",
            "beach",
            "beach",
            "beauty",
            "beauty",
            "books",
            "books",
            "library",
            "library",
            "bookmaker",
            "books",
            "building",
            "building",
            "bus_stop",
            "bus_stop",
            "clothes",
            "clothes",
            "convenience",
            "convenience",
            "drinking_water",
            "drinking_water",
            "electronics",
            "electronics",
            "forest",
            "forest",
            "garden",
            "garden",
            "marina",
            "marina",
            "harbour",
            "marina",
            "port",
            "marina",
            "ferry_terminal",
            "ferry_terminal",
            "museum",
            "museum",
            "park",
            "park",
            "national_park",
            "park",
            "peak",
            "peak",
            "post_office",
            "post_office",
            "school",
            "school",
            "stadium",
            "stadium",
            "supermarket",
            "supermarket",
            "theatre",
            "theatre",
            "toilets",
            "toilets",
            "train_station",
            "train_station",
            "station",
            "train_station",
            "railway_station",
            "train_station",
            "university",
            "university",
            "college",
            "university",
            ""
          ],
          "text-field": [
            "coalesce",
            [
              "get",
              "name:en"
            ],
            [
              "get",
              "name"
            ]
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": [
            "interpolate",
            [
              "linear"
            ],
            [
              "zoom"
            ],
            13,
            9.5,
            16,
            11
          ],
          "text-offset": [
            0,
            0.9
          ],
          "text-anchor": "top",
          "text-max-width": 8,
          "icon-allow-overlap": false
        },
        "paint": {
          "text-color": "{{poiLabel}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.1
        },
        "visibility": "{{show:icons}}"
      },
      {
        "id": "townspot",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "places",
        "filter": [
          "all",
          [
            "match",
            [
              "get",
              "kind_detail"
            ],
            [
              "town",
              "village",
              "hamlet",
              "suburb",
              "quarter"
            ],
            true,
            false
          ],
          [
            ">",
            [
              "coalesce",
              [
                "get",
                "population"
              ],
              0
            ],
            0
          ]
        ],
        "minzoom": 8,
        "layout": {
          "icon-image": "townspot",
          "text-field": [
            "coalesce",
            [
              "get",
              "name:en"
            ],
            [
              "get",
              "name"
            ]
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": 11,
          "text-offset": [
            0,
            0.9
          ],
          "text-anchor": "top",
          "text-max-width": 8
        },
        "paint": {
          "text-color": "{{label}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.1
        },
        "visibility": "{{show:icons}}"
      },
      {
        "id": "road-shield",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "roads",
        "filter": [
          "all",
          [
            "has",
            "shield_text"
          ],
          [
            "match",
            [
              "get",
              "kind"
            ],
            [
              "highway",
              "major_road"
            ],
            true,
            false
          ]
        ],
        "minzoom": 7,
        "layout": {
          "icon-image": [
            "match",
            [
              "length",
              [
                "coalesce",
                [
                  "get",
                  "shield_text"
                ],
                ""
              ]
            ],
            1,
            "generic_shield-1char",
            2,
            "generic_shield-2char",
            3,
            "generic_shield-3char",
            4,
            "generic_shield-4char",
            "generic_shield-5char"
          ],
          "text-field": [
            "get",
            "shield_text"
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": 9,
          "text-allow-overlap": true,
          "icon-allow-overlap": true,
          "text-rotation-alignment": "map"
        },
        "paint": {
          "text-color": "{{label}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1.1
        }
      },
      {
        "id": "address-label",
        "type": "symbol",
        "source": "protomaps",
        "source-layer": "buildings",
        "filter": [
          "all",
          [
            "has",
            "addr_housenumber"
          ],
          [
            "==",
            [
              "get",
              "kind"
            ],
            "address"
          ]
        ],
        "minzoom": 15,
        "layout": {
          "text-field": [
            "get",
            "addr_housenumber"
          ],
          "text-font": [
            "Noto Sans Regular"
          ],
          "text-size": 9,
          "text-allow-overlap": true,
          "text-anchor": "center"
        },
        "paint": {
          "text-color": "{{label}}",
          "text-halo-color": "{{halo}}",
          "text-halo-width": 1
        }
      }
    ]
  },
  "palettes": {
    "light": {
      "name": "Light",
      "swatch": "#f8f4f0",
      "sprite": "light",
      "background": "#f8f4f0",
      "landEdge": "#e8e2d8",
      "shore": "#e8e2d8",
      "earth": "#f6f2ec",
      "rock": "#e8e2d8",
      "sand": "#efe6d2",
      "ice": "#ffffff",
      "landcover": "#ece7de",
      "landuse": "#f2ede5",
      "forest": "#dce8cf",
      "grass": "#e4edd6",
      "farmland": "#eee9d5",
      "scrub": "#e2e9d2",
      "park": "#d9ead2",
      "residential": "#efe8e0",
      "commercial": "#eee3da",
      "industrial": "#e6e2df",
      "school": "#e9e4ee",
      "playground": "#dfead8",
      "wetland": "#d8e6e0",
      "waterLine": "#a8cbf0",
      "water": "#a8cbf0",
      "boundary": "#8a8378",
      "road": "#ffffff",
      "roadMajor": "#fbd0a4",
      "roadCasing": "#c9b8a2",
      "building": "#e3ddd3",
      "buildingOutline": "#d5cec2",
      "label": "#3c3a35",
      "poiLabel": "#6b675e",
      "halo": "#ffffff"
    },
    "bright": {
      "name": "Bright",
      "swatch": "#fdfdfb",
      "sprite": "light",
      "background": "#fdfdfb",
      "landEdge": "#eee8dc",
      "shore": "#eee8dc",
      "earth": "#fbfaf6",
      "rock": "#eee8dc",
      "sand": "#f6ecd4",
      "ice": "#ffffff",
      "landcover": "#f0ece2",
      "landuse": "#f6f2e9",
      "forest": "#c3e8c6",
      "grass": "#d6efb8",
      "farmland": "#f3eed6",
      "scrub": "#dfecc8",
      "park": "#bfe8bd",
      "residential": "#f2e6dd",
      "commercial": "#f5ddd0",
      "industrial": "#e8e4e1",
      "school": "#e6ddf2",
      "playground": "#cfecc7",
      "wetland": "#c9e8e2",
      "waterLine": "#8ecdf5",
      "water": "#8ecdf5",
      "boundary": "#7b7468",
      "road": "#ffffff",
      "roadMajor": "#ffc44d",
      "roadCasing": "#b0a48e",
      "building": "#e6ded2",
      "buildingOutline": "#d8cdbc",
      "label": "#2b2a26",
      "poiLabel": "#5d5a51",
      "halo": "#ffffff"
    },
    "dark": {
      "name": "Dark",
      "sprite": "dark",
      "swatch": "#0f1114",
      "background": "#000000",
      "water": "#000000",
      "earth": "#0e1114",
      "landcover": "#0e1114",
      "landuse": "#0e1114",
      "forest": "#10281a",
      "grass": "#102a1c",
      "farmland": "#2a2517",
      "scrub": "#122619",
      "park": "#0e2d1e",
      "residential": "#12161a",
      "commercial": "#16181c",
      "industrial": "#191c21",
      "school": "#0d1420",
      "playground": "#0e2a12",
      "wetland": "#0b2522",
      "rock": "#22262b",
      "sand": "#2b2617",
      "ice": "#26303a",
      "waterLine": "#4d9bd4",
      "landEdge": "#5f6d7c",
      "shore": "#8fd0f2",
      "boundary": "#a3b6cc",
      "road": "#b9c3cc",
      "roadMajor": "#edc25c",
      "roadCasing": "#000000",
      "building": "#5b6773",
      "buildingOutline": "#5b6773",
      "label": "#f0f3f6",
      "poiLabel": "#aab6c2",
      "halo": "#000000"
    }
  },
  "controls": [
    {
      "group": "Background",
      "keys": [
        "background",
        "earth",
        "landEdge"
      ]
    },
    {
      "group": "Land",
      "keys": [
        "forest",
        "grass",
        "farmland",
        "park",
        "sand",
        "rock",
        "ice"
      ]
    },
    {
      "group": "Water",
      "keys": [
        "water",
        "waterLine",
        "shore"
      ]
    },
    {
      "group": "Roads",
      "keys": [
        "road",
        "roadMajor",
        "roadCasing"
      ]
    },
    {
      "group": "Boundaries and labels",
      "keys": [
        "boundary",
        "label",
        "halo",
        "poiLabel"
      ]
    },
    {
      "group": "Buildings",
      "keys": [
        "building",
        "buildingOutline"
      ]
    }
  ],
  "controlKeys": [
    "background",
    "earth",
    "landEdge",
    "forest",
    "grass",
    "farmland",
    "park",
    "sand",
    "rock",
    "ice",
    "water",
    "waterLine",
    "shore",
    "road",
    "roadMajor",
    "roadCasing",
    "boundary",
    "label",
    "halo",
    "poiLabel",
    "building",
    "buildingOutline"
  ],
  "toggles": [
    {
      "id": "landcover",
      "label": "Land cover",
      "minzoom": 0
    },
    {
      "id": "landuse",
      "label": "Land use",
      "minzoom": 0
    },
    {
      "id": "water",
      "label": "Water",
      "minzoom": 0
    },
    {
      "id": "boundaries",
      "label": "Boundaries",
      "minzoom": 0
    },
    {
      "id": "roads",
      "label": "Roads",
      "minzoom": 3
    },
    {
      "id": "buildings",
      "label": "Buildings",
      "minzoom": 12
    },
    {
      "id": "labels",
      "label": "Place labels",
      "minzoom": 0
    },
    {
      "id": "waterNames",
      "label": "Water names",
      "minzoom": 0
    },
    {
      "id": "roadLabels",
      "label": "Road names",
      "minzoom": 11
    },
    {
      "id": "icons",
      "label": "Icons",
      "minzoom": 8
    }
  ]
}
