{
  "version": 8,

  "glyphs": "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf",
   

  "sources": {
    "osm": {
      "type": "vector",
      "tiles": ["https://map.schoolorbit.in/data/india/{z}/{x}/{y}.pbf"],
      "minzoom": 0,
      "maxzoom": 14
    }
  },

  "layers": [

    {
      "id": "background",
      "type": "background",
      "paint": {
        "background-color": "#eef0f2"
      }
    },

    {
      "id": "landcover",
      "type": "fill",
      "source": "osm",
      "source-layer": "landcover",
      "paint": {
        "fill-color": [
          "match",
          ["get", "class"],
          "wood", "#cfe8c6",
          "grass", "#e4f2dc",
          "scrub", "#e8efd9",
          "#f0f0f0"
        ]
      }
    },

    {
      "id": "landuse",
      "type": "fill",
      "source": "osm",
      "source-layer": "landuse",
      "paint": {
        "fill-color": [
          "match",
          ["get", "class"],
          "forest", "#bfe3b4",
          "wood", "#bfe3b4",
          "park", "#c8e6c9",
          "grass", "#dcedc8",
          "meadow", "#dcedc8",
          "farmland", "#f5f1da",
          "residential", "#efefef",
          "#eaeaea"
        ],
        "fill-opacity": 0.9
      }
    },

    {
      "id": "parks",
      "type": "fill",
      "source": "osm",
      "source-layer": "park",
      "paint": {
        "fill-color": "#c8e6c9",
        "fill-opacity": 0.9
      }
    },

    {
      "id": "water",
      "type": "fill",
      "source": "osm",
      "source-layer": "water",
      "paint": {
        "fill-color": "#a9d3f5"
      }
    },

    {
      "id": "waterway",
      "type": "line",
      "source": "osm",
      "source-layer": "waterway",
      "paint": {
        "line-color": "#a9d3f5",
        "line-width": [
          "interpolate", ["linear"], ["zoom"],
          6, 0.5,
          14, 2
        ]
      }
    },

    {
      "id": "boundaries",
      "type": "line",
      "source": "osm",
      "source-layer": "boundary",
      "paint": {
        "line-color": "#bbbbbb",
        "line-width": 1,
        "line-dasharray": [2, 2]
      }
    },

    {
      "id": "road-casing",
      "type": "line",
      "source": "osm",
      "source-layer": "transportation",
      "paint": {
        "line-color": "#d0d0d0",
        "line-width": [
          "interpolate", ["linear"], ["zoom"],
          6, 1,
          14, 8
        ]
      }
    },

    {
      "id": "minor-roads",
      "type": "line",
      "source": "osm",
      "source-layer": "transportation",
      "filter": ["in", "class", "minor", "service", "track"],
      "paint": {
        "line-color": "#fdfdfd",
        "line-width": [
          "interpolate", ["linear"], ["zoom"],
          6, 0.3,
          14, 2
        ]
      }
    },

    {
      "id": "main-roads",
      "type": "line",
      "source": "osm",
      "source-layer": "transportation",
      "filter": ["in", "class", "primary", "secondary", "tertiary"],
      "paint": {
        "line-color": "#f7d27a",
        "line-width": [
          "interpolate", ["linear"], ["zoom"],
          6, 0.8,
          14, 4
        ]
      }
    },

    {
      "id": "highways",
      "type": "line",
      "source": "osm",
      "source-layer": "transportation",
      "filter": ["in", "class", "motorway", "trunk"],
      "paint": {
        "line-color": "#e9a15a",
        "line-width": [
          "interpolate", ["linear"], ["zoom"],
          6, 1.5,
          14, 6
        ]
      }
    },

    {
      "id": "buildings",
      "type": "fill",
      "source": "osm",
      "source-layer": "building",
      "minzoom": 13,
      "paint": {
        "fill-color": "#dcdcdc",
        "fill-opacity": 0.8
      }
    },

    {
      "id": "road-labels",
      "type": "symbol",
      "source": "osm",
      "source-layer": "transportation_name",
      "minzoom": 11,
      "layout": {
        "symbol-placement": "line",
        "text-field": ["coalesce", ["get", "name:latin"]],
        "text-font": ["Noto Sans Regular"],
        "text-size": 12
      },
      "paint": {
        "text-color": "#555",
        "text-halo-color": "#ffffff",
        "text-halo-width": 1
      }
    },

    {
      "id": "city-labels",
      "type": "symbol",
      "source": "osm",
      "source-layer": "place",
      "filter": ["in", "class", "city", "town"],
      "minzoom": 5,
      "layout": {
        "text-field": ["coalesce", ["get", "name:latin"]],
        "text-font": ["Noto Sans Regular"],
        "text-size": [
          "interpolate", ["linear"], ["zoom"],
          5, 10,
          10, 16,
          14, 22
        ]
      },
      "paint": {
        "text-color": "#222",
        "text-halo-color": "#ffffff",
        "text-halo-width": 1.5
      }
    },

    {
      "id": "village-labels",
      "type": "symbol",
      "source": "osm",
      "source-layer": "place",
      "filter": ["in", "class", "village", "hamlet"],
      "minzoom": 10,
      "layout": {
        "text-field": ["coalesce", ["get", "name:latin"]],
        "text-font": ["Noto Sans Regular"],
        "text-size": 11
      },
      "paint": {
        "text-color": "#666",
        "text-halo-color": "#ffffff",
        "text-halo-width": 1
      }
    }

  ]
}
