{
  "version": 8,
  "name": "Wanda Dark",
  "metadata": {
    "wanda:description": "Quiet dark hiking basemap for Wanda Panda. App layers (route, track, markers) go before 'label-waterway'."
  },
  "sources": {
    "openmaptiles": {
      "type": "vector",
      "url": "https://tiles.openfreemap.org/planet"
    }
  },
  "glyphs": "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf",
  "layers": [
    {
      "id": "background",
      "type": "background",
      "paint": {
        "background-color": "#0f1713"
      }
    },
    {
      "id": "landuse-settled",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landuse",
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "residential",
          "suburb",
          "neighbourhood",
          "commercial",
          "retail",
          "industrial",
          "railway"
        ],
        true,
        false
      ],
      "paint": {
        "fill-color": [
          "match",
          [
            "get",
            "class"
          ],
          [
            "industrial",
            "railway"
          ],
          "#141a19",
          "#131b18"
        ],
        "fill-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          8,
          0.6,
          13,
          1
        ]
      }
    },
    {
      "id": "landcover-farm",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landcover",
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "farmland",
          "grass",
          "wetland"
        ],
        true,
        false
      ],
      "paint": {
        "fill-color": [
          "match",
          [
            "get",
            "class"
          ],
          "wetland",
          "#11211f",
          "farmland",
          "#111a15",
          "#121f17"
        ],
        "fill-opacity": 0.9
      }
    },
    {
      "id": "landcover-wood",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landcover",
      "filter": [
        "==",
        [
          "get",
          "class"
        ],
        "wood"
      ],
      "paint": {
        "fill-color": "#14261b",
        "fill-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5,
          0.7,
          10,
          1
        ]
      }
    },
    {
      "id": "landcover-bare",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landcover",
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "rock",
          "sand",
          "ice"
        ],
        true,
        false
      ],
      "paint": {
        "fill-color": [
          "match",
          [
            "get",
            "class"
          ],
          "ice",
          "#1a2427",
          "#1a1e1b"
        ],
        "fill-opacity": 0.8
      }
    },
    {
      "id": "landuse-green",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landuse",
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "cemetery",
          "pitch",
          "playground",
          "garden",
          "allotments",
          "recreation_ground"
        ],
        true,
        false
      ],
      "paint": {
        "fill-color": "#162a1e",
        "fill-opacity": 0.85
      }
    },
    {
      "id": "park",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "park",
      "paint": {
        "fill-color": "#173020",
        "fill-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          6,
          0.15,
          12,
          0.3,
          15,
          0.45
        ]
      }
    },
    {
      "id": "water",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "water",
      "filter": [
        "!=",
        [
          "get",
          "brunnel"
        ],
        "tunnel"
      ],
      "paint": {
        "fill-color": "#0e2230"
      }
    },
    {
      "id": "waterway",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "waterway",
      "filter": [
        "!=",
        [
          "get",
          "brunnel"
        ],
        "tunnel"
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#0e2230",
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.4
          ],
          [
            "zoom"
          ],
          8,
          [
            "match",
            [
              "get",
              "class"
            ],
            [
              "river",
              "canal"
            ],
            0.8,
            0.3
          ],
          14,
          [
            "match",
            [
              "get",
              "class"
            ],
            [
              "river",
              "canal"
            ],
            3,
            1.2
          ],
          18,
          [
            "match",
            [
              "get",
              "class"
            ],
            [
              "river",
              "canal"
            ],
            10,
            3
          ]
        ]
      }
    },
    {
      "id": "aeroway",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "aeroway",
      "minzoom": 11,
      "filter": [
        "all",
        [
          "==",
          [
            "geometry-type"
          ],
          "LineString"
        ],
        [
          "match",
          [
            "get",
            "class"
          ],
          [
            "runway",
            "taxiway"
          ],
          true,
          false
        ]
      ],
      "paint": {
        "line-color": "#1d2622",
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          11,
          [
            "match",
            [
              "get",
              "class"
            ],
            "runway",
            2,
            0.5
          ],
          17,
          [
            "match",
            [
              "get",
              "class"
            ],
            "runway",
            40,
            10
          ]
        ]
      }
    },
    {
      "id": "building",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "building",
      "minzoom": 15,
      "paint": {
        "fill-color": "#19221e",
        "fill-outline-color": "#1f2925",
        "fill-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          15,
          0,
          16,
          0.9
        ]
      }
    },
    {
      "id": "boundary-state",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "boundary",
      "filter": [
        "all",
        [
          "==",
          [
            "get",
            "admin_level"
          ],
          4
        ],
        [
          "!=",
          [
            "get",
            "maritime"
          ],
          1
        ]
      ],
      "paint": {
        "line-color": "#2c3832",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          4,
          0.5,
          12,
          1.2
        ],
        "line-dasharray": [
          3,
          2
        ]
      }
    },
    {
      "id": "boundary-country",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "boundary",
      "filter": [
        "all",
        [
          "==",
          [
            "get",
            "admin_level"
          ],
          2
        ],
        [
          "!=",
          [
            "get",
            "maritime"
          ],
          1
        ],
        [
          "!=",
          [
            "get",
            "disputed"
          ],
          1
        ]
      ],
      "layout": {
        "line-join": "round"
      },
      "paint": {
        "line-color": "#3d4a43",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          3,
          0.6,
          10,
          1.6,
          14,
          2.4
        ]
      }
    },
    {
      "id": "road-minor",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "minzoom": 12,
      "filter": [
        "all",
        [
          "==",
          [
            "geometry-type"
          ],
          "LineString"
        ],
        [
          "any",
          [
            "match",
            [
              "get",
              "class"
            ],
            [
              "minor",
              "service"
            ],
            true,
            false
          ],
          [
            "==",
            [
              "get",
              "subclass"
            ],
            "pedestrian"
          ]
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#242e29",
        "line-opacity": [
          "case",
          [
            "==",
            [
              "get",
              "brunnel"
            ],
            "tunnel"
          ],
          0.45,
          1
        ],
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          12,
          [
            "match",
            [
              "get",
              "class"
            ],
            "minor",
            0.6,
            0.3
          ],
          15,
          [
            "match",
            [
              "get",
              "class"
            ],
            "minor",
            3,
            1.5
          ],
          18,
          [
            "match",
            [
              "get",
              "class"
            ],
            "minor",
            10,
            5
          ]
        ]
      }
    },
    {
      "id": "road-path",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "minzoom": 12,
      "filter": [
        "all",
        [
          "==",
          [
            "geometry-type"
          ],
          "LineString"
        ],
        [
          "match",
          [
            "get",
            "class"
          ],
          [
            "path",
            "track"
          ],
          true,
          false
        ],
        [
          "!",
          [
            "==",
            [
              "get",
              "subclass"
            ],
            "pedestrian"
          ]
        ]
      ],
      "layout": {
        "line-join": "round"
      },
      "paint": {
        "line-color": [
          "match",
          [
            "get",
            "class"
          ],
          "track",
          "#a88d66",
          "#c4a378"
        ],
        "line-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          12,
          0.6,
          14,
          0.8,
          16,
          0.85
        ],
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.4
          ],
          [
            "zoom"
          ],
          12,
          0.8,
          14,
          1.2,
          16,
          1.7,
          18,
          2.6
        ],
        "line-dasharray": [
          2,
          1.5
        ]
      }
    },
    {
      "id": "rail",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "minzoom": 10,
      "filter": [
        "all",
        [
          "==",
          [
            "geometry-type"
          ],
          "LineString"
        ],
        [
          "match",
          [
            "get",
            "class"
          ],
          [
            "rail",
            "transit"
          ],
          true,
          false
        ],
        [
          "!=",
          [
            "get",
            "brunnel"
          ],
          "tunnel"
        ]
      ],
      "paint": {
        "line-color": "#2b3531",
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.4
          ],
          [
            "zoom"
          ],
          10,
          0.5,
          14,
          1.2,
          18,
          2.5
        ],
        "line-dasharray": [
          4,
          3
        ]
      }
    },
    {
      "id": "road-secondary",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "minzoom": 8,
      "filter": [
        "all",
        [
          "==",
          [
            "geometry-type"
          ],
          "LineString"
        ],
        [
          "match",
          [
            "get",
            "class"
          ],
          [
            "secondary",
            "tertiary"
          ],
          true,
          false
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#2d3833",
        "line-opacity": [
          "case",
          [
            "==",
            [
              "get",
              "brunnel"
            ],
            "tunnel"
          ],
          0.45,
          1
        ],
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          8,
          [
            "match",
            [
              "get",
              "class"
            ],
            "secondary",
            0.5,
            0.2
          ],
          12,
          [
            "match",
            [
              "get",
              "class"
            ],
            "secondary",
            1.4,
            1
          ],
          15,
          4,
          18,
          14
        ]
      }
    },
    {
      "id": "road-primary",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "minzoom": 6,
      "filter": [
        "all",
        [
          "==",
          [
            "geometry-type"
          ],
          "LineString"
        ],
        [
          "match",
          [
            "get",
            "class"
          ],
          [
            "primary",
            "trunk"
          ],
          true,
          false
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#36433c",
        "line-opacity": [
          "case",
          [
            "==",
            [
              "get",
              "brunnel"
            ],
            "tunnel"
          ],
          0.45,
          1
        ],
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          6,
          0.4,
          10,
          1.2,
          15,
          5,
          18,
          16
        ]
      }
    },
    {
      "id": "road-motorway",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "minzoom": 5,
      "filter": [
        "all",
        [
          "==",
          [
            "geometry-type"
          ],
          "LineString"
        ],
        [
          "==",
          [
            "get",
            "class"
          ],
          "motorway"
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#434f48",
        "line-opacity": [
          "case",
          [
            "==",
            [
              "get",
              "brunnel"
            ],
            "tunnel"
          ],
          0.45,
          1
        ],
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          5,
          0.5,
          10,
          1.6,
          15,
          6,
          18,
          18
        ]
      }
    },
    {
      "id": "label-waterway",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "waterway",
      "minzoom": 13,
      "filter": [
        "all",
        [
          "has",
          "name"
        ],
        [
          "match",
          [
            "get",
            "class"
          ],
          [
            "river",
            "canal",
            "stream"
          ],
          true,
          false
        ]
      ],
      "layout": {
        "symbol-placement": "line",
        "symbol-spacing": 400,
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Italic"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          13,
          10,
          17,
          13
        ],
        "text-letter-spacing": 0.05
      },
      "paint": {
        "text-color": "#5f8799",
        "text-halo-color": "#0e1d26",
        "text-halo-width": 1.2
      }
    },
    {
      "id": "label-water",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "water_name",
      "filter": [
        "==",
        [
          "geometry-type"
        ],
        "Point"
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Italic"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          8,
          10,
          14,
          13
        ],
        "text-max-width": 7,
        "text-letter-spacing": 0.05
      },
      "paint": {
        "text-color": "#6990a3",
        "text-halo-color": "#0e1d26",
        "text-halo-width": 1.2
      }
    },
    {
      "id": "label-path",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "transportation_name",
      "minzoom": 15,
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "path",
          "track"
        ],
        true,
        false
      ],
      "layout": {
        "symbol-placement": "line",
        "symbol-spacing": 350,
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": 10.5,
        "text-offset": [
          0,
          0.7
        ]
      },
      "paint": {
        "text-color": "#b39a76",
        "text-halo-color": "#0f1713",
        "text-halo-width": 1.2
      }
    },
    {
      "id": "label-road",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "transportation_name",
      "minzoom": 14,
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "motorway",
          "trunk",
          "primary",
          "secondary",
          "tertiary",
          "minor"
        ],
        true,
        false
      ],
      "layout": {
        "symbol-placement": "line",
        "symbol-spacing": 300,
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          14,
          10,
          18,
          13
        ],
        "text-rotation-alignment": "map",
        "text-pitch-alignment": "viewport"
      },
      "paint": {
        "text-color": "#8e9a92",
        "text-halo-color": "#0f1713",
        "text-halo-width": 1.3
      }
    },
    {
      "id": "label-peak",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "mountain_peak",
      "minzoom": 12,
      "filter": [
        "all",
        [
          "has",
          "name"
        ],
        [
          "match",
          [
            "get",
            "class"
          ],
          [
            "peak",
            "volcano"
          ],
          true,
          false
        ]
      ],
      "layout": {
        "text-field": [
          "format",
          [
            "coalesce",
            [
              "get",
              "name:de"
            ],
            [
              "get",
              "name"
            ]
          ],
          {},
          [
            "case",
            [
              "has",
              "ele"
            ],
            [
              "concat",
              "\n",
              [
                "to-string",
                [
                  "get",
                  "ele"
                ]
              ],
              " m"
            ],
            ""
          ],
          {
            "font-scale": 0.85
          }
        ],
        "text-font": [
          "Noto Sans Italic"
        ],
        "text-size": 10.5,
        "text-max-width": 8,
        "text-line-height": 1.15
      },
      "paint": {
        "text-color": "#a3a88f",
        "text-halo-color": "#0f1713",
        "text-halo-width": 1.2
      }
    },
    {
      "id": "label-place-minor",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "place",
      "minzoom": 12,
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "suburb",
          "quarter",
          "neighbourhood",
          "hamlet"
        ],
        true,
        false
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          12,
          [
            "match",
            [
              "get",
              "class"
            ],
            "suburb",
            11,
            10
          ],
          16,
          [
            "match",
            [
              "get",
              "class"
            ],
            "suburb",
            14,
            12
          ]
        ],
        "text-max-width": 8,
        "text-letter-spacing": [
          "match",
          [
            "get",
            "class"
          ],
          "suburb",
          0.08,
          0.02
        ],
        "text-transform": [
          "match",
          [
            "get",
            "class"
          ],
          "suburb",
          "uppercase",
          "none"
        ]
      },
      "paint": {
        "text-color": "#929d95",
        "text-halo-color": "#0f1713",
        "text-halo-width": 1.3
      }
    },
    {
      "id": "label-place-village",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "place",
      "minzoom": 10,
      "filter": [
        "==",
        [
          "get",
          "class"
        ],
        "village"
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          10,
          10.5,
          14,
          14
        ],
        "text-max-width": 8
      },
      "paint": {
        "text-color": "#c3cbc3",
        "text-halo-color": "#0f1713",
        "text-halo-width": 1.4
      }
    },
    {
      "id": "label-place-town",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "place",
      "minzoom": 7,
      "filter": [
        "==",
        [
          "get",
          "class"
        ],
        "town"
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          7,
          11,
          11,
          13,
          15,
          17
        ],
        "text-max-width": 8
      },
      "paint": {
        "text-color": "#dde2da",
        "text-halo-color": "#0f1713",
        "text-halo-width": 1.5
      }
    },
    {
      "id": "label-place-city",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "place",
      "minzoom": 4,
      "maxzoom": 15,
      "filter": [
        "==",
        [
          "get",
          "class"
        ],
        "city"
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Bold"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          4,
          [
            "case",
            [
              "<=",
              [
                "get",
                "rank"
              ],
              4
            ],
            12,
            10.5
          ],
          8,
          [
            "case",
            [
              "<=",
              [
                "get",
                "rank"
              ],
              4
            ],
            15,
            13
          ],
          12,
          19,
          14,
          21
        ],
        "text-max-width": 8,
        "text-letter-spacing": 0.02
      },
      "paint": {
        "text-color": "#eef1ea",
        "text-halo-color": "#0f1713",
        "text-halo-width": 1.6
      }
    },
    {
      "id": "label-place-region",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "place",
      "maxzoom": 8,
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "country",
          "state"
        ],
        true,
        false
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:de"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": [
          "match",
          [
            "get",
            "class"
          ],
          "country",
          13,
          10.5
        ],
        "text-transform": "uppercase",
        "text-letter-spacing": 0.12,
        "text-max-width": 8
      },
      "paint": {
        "text-color": [
          "match",
          [
            "get",
            "class"
          ],
          "country",
          "#a6b0a8",
          "#7c8880"
        ],
        "text-halo-color": "#0f1713",
        "text-halo-width": 1.4
      }
    }
  ]
}
