{
  "version": 8,
  "name": "halq.kz",
  "metadata": {
    "comment": "halq.kz's own map: the OpenMapTiles schema (built by map/build.sh), drawn in the app's colours — warm ground, Go's yellow on the big roads, 3D houses up close."
  },
  "glyphs": "fonts/{fontstack}/{range}.pbf",
  "sources": {
    "halq": {
      "type": "vector",
      "url": "pmtiles://tiles/halq.pmtiles",
      "attribution": "© halq.kz · данные © участники OpenStreetMap"
    }
  },
  "layers": [
    {
      "id": "ground",
      "type": "background",
      "paint": {
        "background-color": "#F3F1EC"
      }
    },
    {
      "id": "landuse-residential",
      "type": "fill",
      "source": "halq",
      "source-layer": "landuse",
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "residential",
            "suburb",
            "neighbourhood"
          ]
        ]
      ],
      "paint": {
        "fill-color": "#EEEBE4"
      }
    },
    {
      "id": "landuse-commercial",
      "type": "fill",
      "source": "halq",
      "source-layer": "landuse",
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "commercial",
            "retail"
          ]
        ]
      ],
      "paint": {
        "fill-color": "#F4EADF"
      }
    },
    {
      "id": "landuse-industrial",
      "type": "fill",
      "source": "halq",
      "source-layer": "landuse",
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "industrial",
            "railway",
            "garages"
          ]
        ]
      ],
      "paint": {
        "fill-color": "#ECE8EE"
      }
    },
    {
      "id": "landuse-public",
      "type": "fill",
      "source": "halq",
      "source-layer": "landuse",
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "school",
            "university",
            "college",
            "hospital",
            "kindergarten"
          ]
        ]
      ],
      "paint": {
        "fill-color": "#F1EAF4"
      }
    },
    {
      "id": "landcover-green",
      "type": "fill",
      "source": "halq",
      "source-layer": "landcover",
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "grass",
            "wood",
            "farmland",
            "wetland"
          ]
        ]
      ],
      "paint": {
        "fill-color": [
          "match",
          [
            "get",
            "class"
          ],
          "wood",
          "#CFE6C0",
          "farmland",
          "#EAF0D8",
          "#DCEECF"
        ]
      }
    },
    {
      "id": "park",
      "type": "fill",
      "source": "halq",
      "source-layer": "park",
      "paint": {
        "fill-color": "#CFE8C1",
        "fill-opacity": 0.9
      }
    },
    {
      "id": "landuse-cemetery",
      "type": "fill",
      "source": "halq",
      "source-layer": "landuse",
      "filter": [
        "==",
        [
          "get",
          "class"
        ],
        "cemetery"
      ],
      "paint": {
        "fill-color": "#DDE8D6"
      }
    },
    {
      "id": "water",
      "type": "fill",
      "source": "halq",
      "source-layer": "water",
      "paint": {
        "fill-color": "#AFD3F0"
      }
    },
    {
      "id": "waterway",
      "type": "line",
      "source": "halq",
      "source-layer": "waterway",
      "paint": {
        "line-color": "#AFD3F0",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          10,
          0.6,
          16,
          3
        ]
      }
    },
    {
      "id": "aeroway",
      "type": "fill",
      "source": "halq",
      "source-layer": "aeroway",
      "filter": [
        "==",
        [
          "geometry-type"
        ],
        "Polygon"
      ],
      "paint": {
        "fill-color": "#E6E3EC"
      }
    },
    {
      "id": "road-casing-minor",
      "type": "line",
      "source": "halq",
      "source-layer": "transportation",
      "minzoom": 13,
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "minor",
            "service"
          ]
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#DEDAD0",
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          13,
          1.5,
          18,
          [
            "match",
            [
              "get",
              "class"
            ],
            "service",
            9,
            16
          ]
        ]
      }
    },
    {
      "id": "road-casing-mid",
      "type": "line",
      "source": "halq",
      "source-layer": "transportation",
      "minzoom": 10,
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "secondary",
            "tertiary"
          ]
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#D8D3C8",
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          10,
          1.5,
          18,
          26
        ]
      }
    },
    {
      "id": "road-casing-major",
      "type": "line",
      "source": "halq",
      "source-layer": "transportation",
      "minzoom": 8,
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "motorway",
            "trunk",
            "primary"
          ]
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": [
          "match",
          [
            "get",
            "class"
          ],
          "primary",
          "#E5CB76",
          "#E2B43A"
        ],
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          8,
          1.5,
          18,
          34
        ]
      }
    },
    {
      "id": "path",
      "type": "line",
      "source": "halq",
      "source-layer": "transportation",
      "minzoom": 15,
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "path",
            "track"
          ]
        ]
      ],
      "paint": {
        "line-color": "#C9C3B6",
        "line-dasharray": [
          2,
          1.5
        ],
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          15,
          0.8,
          18,
          2
        ]
      }
    },
    {
      "id": "rail",
      "type": "line",
      "source": "halq",
      "source-layer": "transportation",
      "minzoom": 11,
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "rail",
            "transit"
          ]
        ]
      ],
      "paint": {
        "line-color": "#BDB8AE",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          11,
          0.8,
          18,
          3
        ],
        "line-dasharray": [
          3,
          2
        ]
      }
    },
    {
      "id": "road-minor",
      "type": "line",
      "source": "halq",
      "source-layer": "transportation",
      "minzoom": 13,
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "minor",
            "service"
          ]
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#FFFFFF",
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          13,
          0.8,
          18,
          [
            "match",
            [
              "get",
              "class"
            ],
            "service",
            7,
            13
          ]
        ]
      }
    },
    {
      "id": "road-mid",
      "type": "line",
      "source": "halq",
      "source-layer": "transportation",
      "minzoom": 10,
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "secondary",
            "tertiary"
          ]
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#FFFFFF",
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          10,
          0.8,
          18,
          22
        ]
      }
    },
    {
      "id": "road-major",
      "type": "line",
      "source": "halq",
      "source-layer": "transportation",
      "minzoom": 6,
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "motorway",
            "trunk",
            "primary"
          ]
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": [
          "match",
          [
            "get",
            "class"
          ],
          "primary",
          "#FFEEB0",
          "#FFD95C"
        ],
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          6,
          0.8,
          18,
          30
        ]
      }
    },
    {
      "id": "building",
      "type": "fill",
      "source": "halq",
      "source-layer": "building",
      "minzoom": 13,
      "maxzoom": 15.5,
      "paint": {
        "fill-color": "#E4E0D7",
        "fill-outline-color": "#D5D0C6"
      }
    },
    {
      "id": "building-3d",
      "type": "fill-extrusion",
      "source": "halq",
      "source-layer": "building",
      "minzoom": 15,
      "paint": {
        "fill-extrusion-color": "#E7E3DB",
        "fill-extrusion-height": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          15,
          0,
          16,
          [
            "coalesce",
            [
              "get",
              "render_height"
            ],
            9
          ]
        ],
        "fill-extrusion-base": [
          "coalesce",
          [
            "get",
            "render_min_height"
          ],
          0
        ],
        "fill-extrusion-opacity": 0.92
      }
    },
    {
      "id": "boundary",
      "type": "line",
      "source": "halq",
      "source-layer": "boundary",
      "filter": [
        "<=",
        [
          "get",
          "admin_level"
        ],
        4
      ],
      "paint": {
        "line-color": "#B9A9C9",
        "line-dasharray": [
          3,
          2
        ],
        "line-width": 1
      }
    },
    {
      "id": "water-name",
      "type": "symbol",
      "source": "halq",
      "source-layer": "water_name",
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:ru"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Italic"
        ],
        "text-size": 12
      },
      "paint": {
        "text-color": "#4F86B5",
        "text-halo-color": "#FFFFFF",
        "text-halo-width": 1
      }
    },
    {
      "id": "street-name",
      "type": "symbol",
      "source": "halq",
      "source-layer": "transportation_name",
      "minzoom": 13,
      "layout": {
        "symbol-placement": "line",
        "text-field": [
          "coalesce",
          [
            "get",
            "name:ru"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          13,
          10,
          18,
          14
        ],
        "text-max-angle": 30,
        "symbol-spacing": 320
      },
      "paint": {
        "text-color": "#4A4740",
        "text-halo-color": "#FFFFFF",
        "text-halo-width": 1.6
      }
    },
    {
      "id": "housenumber",
      "type": "symbol",
      "source": "halq",
      "source-layer": "housenumber",
      "minzoom": 17,
      "layout": {
        "text-field": [
          "get",
          "housenumber"
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": 11
      },
      "paint": {
        "text-color": "#8A8377",
        "text-halo-color": "#F3F1EC",
        "text-halo-width": 1
      }
    },
    {
      "id": "poi-dot",
      "type": "circle",
      "source": "halq",
      "source-layer": "poi",
      "minzoom": 15,
      "paint": {
        "circle-color": [
          "match",
          [
            "get",
            "class"
          ],
          [
            "shop",
            "grocery",
            "clothing_store",
            "alcohol_shop"
          ],
          "#B45309",
          [
            "restaurant",
            "fast_food",
            "cafe",
            "bar",
            "beer"
          ],
          "#C2410C",
          [
            "school",
            "college",
            "kindergarten",
            "library"
          ],
          "#7C3AED",
          [
            "hospital",
            "doctors",
            "dentist",
            "pharmacy"
          ],
          "#DC2626",
          [
            "bank",
            "atm"
          ],
          "#0F766E",
          [
            "park",
            "garden"
          ],
          "#3F8A2F",
          "#5B5650"
        ],
        "circle-radius": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          15,
          2.6,
          18,
          4.5
        ],
        "circle-stroke-color": "#FFFFFF",
        "circle-stroke-width": 1.2
      }
    },
    {
      "id": "poi",
      "type": "symbol",
      "source": "halq",
      "source-layer": "poi",
      "minzoom": 14,
      "filter": [
        "<=",
        [
          "get",
          "rank"
        ],
        12
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:ru"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": 11.5,
        "text-anchor": "top",
        "text-offset": [
          0,
          0.5
        ],
        "text-max-width": 9,
        "icon-optional": true
      },
      "paint": {
        "text-color": [
          "match",
          [
            "get",
            "class"
          ],
          [
            "shop",
            "grocery",
            "clothing_store",
            "alcohol_shop"
          ],
          "#B45309",
          [
            "restaurant",
            "fast_food",
            "cafe",
            "bar",
            "beer"
          ],
          "#C2410C",
          [
            "school",
            "college",
            "kindergarten",
            "library"
          ],
          "#7C3AED",
          [
            "hospital",
            "doctors",
            "dentist",
            "pharmacy"
          ],
          "#DC2626",
          [
            "bank",
            "atm"
          ],
          "#0F766E",
          [
            "park",
            "garden"
          ],
          "#3F8A2F",
          "#5B5650"
        ],
        "text-halo-color": "#FFFFFF",
        "text-halo-width": 1.4
      },
      "maxzoom": 15
    },
    {
      "id": "poi-more",
      "type": "symbol",
      "source": "halq",
      "source-layer": "poi",
      "minzoom": 15,
      "filter": [
        "<=",
        [
          "get",
          "rank"
        ],
        40
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:ru"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": 11.5,
        "text-anchor": "top",
        "text-offset": [
          0,
          0.5
        ],
        "text-max-width": 9,
        "icon-optional": true
      },
      "paint": {
        "text-color": [
          "match",
          [
            "get",
            "class"
          ],
          [
            "shop",
            "grocery",
            "clothing_store",
            "alcohol_shop"
          ],
          "#B45309",
          [
            "restaurant",
            "fast_food",
            "cafe",
            "bar",
            "beer"
          ],
          "#C2410C",
          [
            "school",
            "college",
            "kindergarten",
            "library"
          ],
          "#7C3AED",
          [
            "hospital",
            "doctors",
            "dentist",
            "pharmacy"
          ],
          "#DC2626",
          [
            "bank",
            "atm"
          ],
          "#0F766E",
          [
            "park",
            "garden"
          ],
          "#3F8A2F",
          "#5B5650"
        ],
        "text-halo-color": "#FFFFFF",
        "text-halo-width": 1.4
      },
      "maxzoom": 16
    },
    {
      "id": "poi-all",
      "type": "symbol",
      "source": "halq",
      "source-layer": "poi",
      "minzoom": 16,
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:ru"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": 11,
        "text-anchor": "top",
        "text-offset": [
          0,
          0.5
        ],
        "text-max-width": 9,
        "icon-optional": true
      },
      "paint": {
        "text-color": [
          "match",
          [
            "get",
            "class"
          ],
          [
            "shop",
            "grocery",
            "clothing_store",
            "alcohol_shop"
          ],
          "#B45309",
          [
            "restaurant",
            "fast_food",
            "cafe",
            "bar",
            "beer"
          ],
          "#C2410C",
          [
            "school",
            "college",
            "kindergarten",
            "library"
          ],
          "#7C3AED",
          [
            "hospital",
            "doctors",
            "dentist",
            "pharmacy"
          ],
          "#DC2626",
          [
            "bank",
            "atm"
          ],
          "#0F766E",
          [
            "park",
            "garden"
          ],
          "#3F8A2F",
          "#5B5650"
        ],
        "text-halo-color": "#FFFFFF",
        "text-halo-width": 1.4
      }
    },
    {
      "id": "place-small",
      "type": "symbol",
      "source": "halq",
      "source-layer": "place",
      "minzoom": 11,
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "suburb",
            "neighbourhood",
            "quarter",
            "village",
            "hamlet"
          ]
        ]
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:ru"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Bold"
        ],
        "text-size": 12,
        "text-transform": "uppercase",
        "text-letter-spacing": 0.08
      },
      "paint": {
        "text-color": "#8B8578",
        "text-halo-color": "#F3F1EC",
        "text-halo-width": 1.2
      }
    },
    {
      "id": "place-city",
      "type": "symbol",
      "source": "halq",
      "source-layer": "place",
      "filter": [
        "in",
        [
          "get",
          "class"
        ],
        [
          "literal",
          [
            "city",
            "town"
          ]
        ]
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:ru"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Bold"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5,
          12,
          12,
          20
        ]
      },
      "paint": {
        "text-color": "#21201F",
        "text-halo-color": "#FFFFFF",
        "text-halo-width": 2
      }
    }
  ]
}