{
  "version": 8,
  "glyphs": "https://docs.maplibre-yaml.org/fonts/{fontstack}/{range}.pbf",
  "center": [
    -74.0118,
    40.7075
  ],
  "zoom": 15.9,
  "pitch": 60,
  "bearing": 29,
  "light": {
    "anchor": "map",
    "position": [
      1.15,
      239,
      30
    ],
    "intensity": 0.5
  },
  "sprite": [
    {
      "id": "mlym",
      "url": "https://docs.maplibre-yaml.org/classics/crosshatch/exported/mlym"
    }
  ],
  "sources": {
    "omt": {
      "type": "vector",
      "url": "https://tiles.openfreemap.org/planet",
      "attribution": "<a href=\"https://openfreemap.org\">OpenFreeMap</a> © <a href=\"https://www.openmaptiles.org/\">OpenMapTiles</a> Data from <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a>"
    }
  },
  "layers": [
    {
      "id": "earth",
      "type": "background",
      "paint": {
        "background-pattern": "mlym:earth"
      }
    },
    {
      "id": "parks",
      "source": "omt",
      "source-layer": "park",
      "type": "fill",
      "paint": {
        "fill-pattern": "mlym:landuse"
      }
    },
    {
      "id": "landcover",
      "source": "omt",
      "source-layer": "landcover",
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "grass",
          "wood",
          "farmland",
          "sand"
        ],
        true,
        false
      ],
      "type": "fill",
      "paint": {
        "fill-pattern": [
          "match",
          [
            "get",
            "class"
          ],
          "sand",
          "mlym:earth",
          "mlym:landuse"
        ]
      }
    },
    {
      "id": "water",
      "source": "omt",
      "source-layer": "water",
      "type": "fill",
      "paint": {
        "fill-pattern": "mlym:water"
      }
    },
    {
      "id": "roads",
      "source": "omt",
      "source-layer": "transportation",
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "motorway",
          "trunk",
          "primary",
          "secondary",
          "tertiary",
          "minor",
          "service"
        ],
        true,
        false
      ],
      "type": "line",
      "paint": {
        "line-color": "#343434",
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.6
          ],
          [
            "zoom"
          ],
          13,
          [
            "match",
            [
              "get",
              "class"
            ],
            [
              "motorway",
              "trunk"
            ],
            2,
            0.6
          ],
          18,
          [
            "match",
            [
              "get",
              "class"
            ],
            [
              "motorway",
              "trunk"
            ],
            16,
            [
              "primary",
              "secondary"
            ],
            10,
            6
          ]
        ]
      },
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      }
    },
    {
      "id": "buildings",
      "source": "omt",
      "source-layer": "building",
      "minzoom": 13,
      "type": "fill-extrusion",
      "paint": {
        "fill-extrusion-pattern": "mlym:building-hatch",
        "fill-extrusion-height": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          13,
          [
            "*",
            [
              "coalesce",
              [
                "get",
                "render_height"
              ],
              10
            ],
            2.25
          ],
          18,
          [
            "coalesce",
            [
              "get",
              "render_height"
            ],
            10
          ]
        ],
        "fill-extrusion-base": [
          "coalesce",
          [
            "get",
            "render_min_height"
          ],
          0
        ],
        "fill-extrusion-vertical-gradient": true
      }
    },
    {
      "id": "place-labels",
      "source": "omt",
      "source-layer": "place",
      "filter": [
        "match",
        [
          "get",
          "class"
        ],
        [
          "neighbourhood",
          "suburb",
          "quarter"
        ],
        true,
        false
      ],
      "type": "symbol",
      "layout": {
        "text-pitch-alignment": "viewport",
        "text-field": [
          "coalesce",
          [
            "get",
            "name:en"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Libre Baskerville Italic"
        ],
        "text-size": 22,
        "text-max-width": 7
      },
      "paint": {
        "text-color": "#000000",
        "text-halo-color": "#f9f3e3",
        "text-halo-width": 3.5
      }
    }
  ]
}
