{
  "version": 8,
  "name": "武康路轻量矢量底图",
  "glyphs": "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf",
  "sources": {
    "openmaptiles": {
      "type": "vector",
      "url": "https://tiles.openfreemap.org/planet",
      "attribution": "© OpenMapTiles Data from OpenStreetMap"
    }
  },
  "layers": [
    {
      "id": "background",
      "type": "background",
      "paint": { "background-color": "#e8ece8" }
    },
    {
      "id": "park",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "park",
      "paint": { "fill-color": "#d9e4d5", "fill-opacity": 0.82 }
    },
    {
      "id": "landuse-residential",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landuse",
      "filter": ["match", ["get", "class"], ["residential", "commercial", "school", "hospital"], true, false],
      "paint": { "fill-color": "#eef0eb", "fill-opacity": 0.72 }
    },
    {
      "id": "water",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "water",
      "paint": { "fill-color": "#cfe1e4", "fill-opacity": 0.86 }
    },
    {
      "id": "waterway",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "waterway",
      "paint": { "line-color": "#c3d9dc", "line-width": ["interpolate", ["linear"], ["zoom"], 10, 0.5, 16, 2] }
    },
    {
      "id": "building",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "building",
      "minzoom": 12,
      "paint": { "fill-color": "#d8dcd8", "fill-opacity": 0.7, "fill-outline-color": "#c5cbc5" }
    },
    {
      "id": "road-casing",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "paint": {
        "line-color": "#c3c9c4",
        "line-width": ["interpolate", ["linear"], ["zoom"], 11, 1.2, 16, 7, 19, 14],
        "line-opacity": 0.9
      }
    },
    {
      "id": "road-fill",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "paint": {
        "line-color": ["match", ["get", "class"], ["primary", "secondary", "tertiary"], "#f5f1dc", "#f8f8f3"],
        "line-width": ["interpolate", ["linear"], ["zoom"], 11, 0.7, 16, 5, 19, 11],
        "line-opacity": 0.98
      }
    },
    {
      "id": "road-names",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "transportation_name",
      "minzoom": 13,
      "layout": {
        "symbol-placement": "line",
        "symbol-spacing": 380,
        "text-field": ["coalesce", ["get", "name:zh"], ["get", "name"]],
        "text-font": ["Noto Sans Regular"],
        "text-size": ["interpolate", ["linear"], ["zoom"], 13, 10, 17, 13],
        "text-letter-spacing": 0,
        "text-max-angle": 35,
        "text-padding": 3
      },
      "paint": {
        "text-color": "#65706a",
        "text-halo-color": "rgba(247, 248, 244, 0.92)",
        "text-halo-width": 1.4
      }
    }
  ]
}
