{
  "version": 8,
  "name": "eScore Modern",
  "sources": {
    "escore": {
      "type": "vector",
      "url": "/data/india.json",
      "maxzoom": 14
    }
  },
  "glyphs": "/fonts/{fontstack}/{range}.pbf",
  "layers": [
    {
      "id": "background",
      "type": "background",
      "paint": { "background-color": "#f0f4f8" }
    },
    {
      "id": "landcover",
      "type": "fill",
      "source": "escore",
      "source-layer": "landcover",
      "paint": { "fill-color": "#e2ece2", "fill-opacity": 0.9 }
    },
    {
      "id": "landuse",
      "type": "fill",
      "source": "escore",
      "source-layer": "landuse",
      "minzoom": 10,
      "paint": { "fill-color": "#ebf0e6", "fill-opacity": 0.9 }
    },
    {
      "id": "park",
      "type": "fill",
      "source": "escore",
      "source-layer": "park",
      "paint": { "fill-color": "#b5d7b5", "fill-opacity": 0.9 }
    },
    {
      "id": "water",
      "type": "fill",
      "source": "escore",
      "source-layer": "water",
      "paint": { "fill-color": "#a4d0ee" }
    },
    {
      "id": "waterway",
      "type": "line",
      "source": "escore",
      "source-layer": "waterway",
      "paint": { "line-color": "#8cc0e6", "line-width": 1.2 }
    },
    {
      "id": "boundary",
      "type": "line",
      "source": "escore",
      "source-layer": "boundary",
      "paint": { "line-color": "#c6ccd6", "line-width": 1.1, "line-opacity": 0.8 }
    },
    {
      "id": "buildings",
      "type": "fill",
      "source": "escore",
      "source-layer": "building",
      "minzoom": 14,
      "paint": { "fill-color": "#e2e6ec", "fill-outline-color": "#ced4da", "fill-opacity": 0.88 }
    },
    {
      "id": "roads-major-casing",
      "type": "line",
      "source": "escore",
      "source-layer": "transportation",
      "minzoom": 4,
      "filter": ["match", ["get", "class"], ["motorway", "trunk", "primary", "secondary"], true, false],
      "paint": { "line-color": "#c6ccd4", "line-width": ["interpolate", ["linear"], ["zoom"], 4, 2.5, 12, 7, 16, 12] }
    },
    {
      "id": "roads-major",
      "type": "line",
      "source": "escore",
      "source-layer": "transportation",
      "minzoom": 4,
      "filter": ["match", ["get", "class"], ["motorway", "trunk", "primary", "secondary"], true, false],
      "paint": { "line-color": "#ffffff", "line-width": ["interpolate", ["linear"], ["zoom"], 4, 1.3, 12, 4.7, 16, 9] }
    },
    {
      "id": "roads-local-casing",
      "type": "line",
      "source": "escore",
      "source-layer": "transportation",
      "minzoom": 11,
      "filter": ["match", ["get", "class"], ["tertiary", "minor", "service", "track", "path"], true, false],
      "paint": { "line-color": "#d0d6dc", "line-width": ["interpolate", ["linear"], ["zoom"], 11, 1.3, 16, 3.6] }
    },
    {
      "id": "roads-local",
      "type": "line",
      "source": "escore",
      "source-layer": "transportation",
      "minzoom": 11,
      "filter": ["match", ["get", "class"], ["tertiary", "minor", "service", "track", "path"], true, false],
      "paint": { "line-color": "#ffffff", "line-width": ["interpolate", ["linear"], ["zoom"], 11, 0.7, 16, 2.3] }
    },
    {
      "id": "road-names",
      "type": "symbol",
      "source": "escore",
      "source-layer": "transportation_name",
      "minzoom": 9,
      "layout": {
        "text-field": ["coalesce", ["get", "name_en"], ["get", "name"]],
        "text-font": ["Noto Sans Regular"],
        "text-size": ["interpolate", ["linear"], ["zoom"], 9, 9, 16, 13],
        "symbol-placement": "line",
        "text-rotation-alignment": "map",
        "text-keep-upright": true,
        "symbol-spacing": 300
      },
      "paint": { "text-color": "#5a646e", "text-halo-color": "#ffffff", "text-halo-width": 1.2 }
    },
    {
      "id": "place-names",
      "type": "symbol",
      "source": "escore",
      "source-layer": "place",
      "minzoom": 4,
      "layout": {
        "text-field": ["coalesce", ["get", "name_en"], ["get", "name"]],
        "text-font": ["Noto Sans Bold"],
        "text-size": ["interpolate", ["linear"], ["zoom"], 4, 11, 10, 15, 16, 18],
        "text-max-width": 8,
        "text-allow-overlap": false
      },
      "paint": { "text-color": "#1a2026", "text-halo-color": "#ffffff", "text-halo-width": 1.5 }
    },
    {
      "id": "park-names",
      "type": "symbol",
      "source": "escore",
      "source-layer": "park",
      "minzoom": 13,
      "filter": ["has", "name"],
      "layout": {
        "text-field": ["coalesce", ["get", "name_en"], ["get", "name"]],
        "text-font": ["Noto Sans Regular"],
        "text-size": 11,
        "text-max-width": 9
      },
      "paint": { "text-color": "#387a38", "text-halo-color": "#f0f8f0", "text-halo-width": 1 }
    },
    {
      "id": "water-names",
      "type": "symbol",
      "source": "escore",
      "source-layer": "water_name",
      "minzoom": 11,
      "filter": ["has", "name"],
      "layout": {
        "text-field": ["coalesce", ["get", "name_en"], ["get", "name"]],
        "text-font": ["Noto Sans Regular"],
        "text-size": 11,
        "text-max-width": 9
      },
      "paint": { "text-color": "#388dd2", "text-halo-color": "#ffffff", "text-halo-width": 1 }
    },
    {
      "id": "poi-important",
      "type": "symbol",
      "source": "escore",
      "source-layer": "poi",
      "minzoom": 12,
      "filter": ["all", ["has", "name"]],
      "layout": {
        "text-field": ["coalesce", ["get", "name_en"], ["get", "name"]],
        "text-font": ["Noto Sans Regular"],
        "text-size": 10,
        "text-anchor": "left",
        "text-offset": [0.8, 0],
        "text-optional": true
      },
      "paint": { "text-color": "#5a646e", "text-halo-color": "#ffffff", "text-halo-width": 1.2 }
    }
  ]
}
