{"_id":"@abez/kazakhstan-map","_rev":"2-1c9c3fd7ea36bf36c697fb88454955c2","name":"@abez/kazakhstan-map","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@abez/kazakhstan-map","version":"0.1.0","keywords":["react","svg","map","kazakhstan","choropleth","geo","topojson"],"author":"","license":"MIT","_id":"@abez/kazakhstan-map@0.1.0","maintainers":[{"name":"lastninja294","email":"lastninja294@gmail.com"}],"homepage":"https://github.com/lastninja294/geo-maps/tree/main/packages/kazakhstan-map#readme","bugs":{"url":"https://github.com/lastninja294/geo-maps/issues"},"dist":{"shasum":"ebace087122ace5ef00b798d68b4f043d523fb51","tarball":"https://registry.npmjs.org/@abez/kazakhstan-map/-/kazakhstan-map-0.1.0.tgz","fileCount":73,"integrity":"sha512-dnK5HZNXmJ3B/ZPAmzCGJsktF2J5DmOecxAz4sk9+Xe3u7P4n3fkBOQ9Lr9LLy0GN84tJzw6J+UsB/W9BOmjyw==","signatures":[{"sig":"MEUCIQCtCmz2rZW/6fx7lWZ5xl5WTBJIYseZZQz9yzW63wZ4ywIgRimEXTc7Ssy0o0NYGBlH8NGFaNiHmHeQKFG6fgm2KyM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3378683},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"a7e4bd8b8b416344a2d022ec4645ca33231a4fc7","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","data:meta":"node scripts/build-metadata.mjs","typecheck":"tsc --noEmit","data:build":"node scripts/build-topology.mjs","data:fetch":"node scripts/fetch-geoboundaries.mjs","test:watch":"vitest"},"_npmUser":{"name":"lastninja294","email":"lastninja294@gmail.com"},"repository":{"url":"git+https://github.com/lastninja294/geo-maps.git","type":"git","directory":"packages/kazakhstan-map"},"_npmVersion":"10.9.4","description":"Customizable, accessible SVG map of Kazakhstan for React -- regions and districts, built-in metadata, choropleth, tooltips, and drill-down. Zero runtime dependencies.","directories":{},"sideEffects":false,"_nodeVersion":"22.21.1","dependencies":{"@abez/map-core":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"react":">=17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/kazakhstan-map_0.1.0_1787495847019_0.3241065827988754","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"_id":"@abez/kazakhstan-map@0.1.1","bugs":{"url":"https://github.com/lastninja294/geo-maps/issues"},"dist":{"shasum":"80cb9f9fb1b5c5fe60cdfefa7254797f80456836","tarball":"https://registry.npmjs.org/@abez/kazakhstan-map/-/kazakhstan-map-0.1.1.tgz","fileCount":73,"integrity":"sha512-mNbwUYG2df+55bB5nK5f4j+2Nd8Y/ZhpQ/6hX/4cIDhfkAL+6h/XmlDEEGWtXoD/yo+SUMKRUzVmoxd2Dn0oXw==","signatures":[{"sig":"MEUCIQCNwBIj+piPVlqwuhmsIcHQcno9OxVAs5pRRrlPZZr+WwIgRlzEH9FSh+epp4hnhAXEwOZ0AtJJnlsCYb2wfqWpVC0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEckId0DdfZdYSwFpMGizxllsACxg2N90RVbmgIsceO/AiB7En9/1NutX8QOZeq7QqWE/35aAbCqJqO4bFeDjWcQhg=="}],"unpackedSize":3378703},"main":"./dist/index.cjs","name":"@abez/kazakhstan-map","type":"module","types":"./dist/index.d.ts","author":"","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"c85e41694a8790fed9858faff4bddf89ffc5018f","license":"MIT","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","data:meta":"node scripts/build-metadata.mjs","typecheck":"tsc --noEmit","data:build":"node scripts/build-topology.mjs","data:fetch":"node scripts/fetch-geoboundaries.mjs","test:watch":"vitest"},"version":"0.1.1","_npmUser":{"name":"lastninja294","email":"lastninja294@gmail.com"},"homepage":"https://abez-maps.vercel.app/kazakhstan","keywords":["react","svg","map","kazakhstan","choropleth","geo","topojson"],"repository":{"url":"git+https://github.com/lastninja294/geo-maps.git","type":"git","directory":"packages/kazakhstan-map"},"_npmVersion":"10.9.4","description":"Customizable, accessible SVG map of Kazakhstan for React -- regions and districts, built-in metadata, choropleth, tooltips, and drill-down. Zero runtime dependencies.","directories":{},"maintainers":[{"name":"lastninja294","email":"lastninja294@gmail.com"}],"sideEffects":false,"_nodeVersion":"22.21.1","dependencies":{"@abez/map-core":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"react":">=17.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/kazakhstan-map_0.1.1_1787570341588_0.30018144988334416"}}},"time":{"created":"2026-08-23T14:37:26.896Z","modified":"2026-08-24T11:19:01.944Z","0.1.0":"2026-08-23T14:37:27.281Z","0.1.1":"2026-08-24T11:19:01.714Z"},"bugs":{"url":"https://github.com/lastninja294/geo-maps/issues"},"license":"MIT","homepage":"https://abez-maps.vercel.app/kazakhstan","keywords":["react","svg","map","kazakhstan","choropleth","geo","topojson"],"repository":{"url":"git+https://github.com/lastninja294/geo-maps.git","type":"git","directory":"packages/kazakhstan-map"},"description":"Customizable, accessible SVG map of Kazakhstan for React -- regions and districts, built-in metadata, choropleth, tooltips, and drill-down. Zero runtime dependencies.","maintainers":[{"name":"lastninja294","email":"lastninja294@gmail.com"}],"readme":"# @abez/kazakhstan-map\n\n**[Live demo →](https://abez-maps.vercel.app/kazakhstan)**\n\nA customizable, accessible SVG map of Kazakhstan for React — 16 top-level\nregions and 175 districts, geometry from geoBoundaries, choropleth,\ndrill-down, and 3-locale built-in metadata (kk/ru/en).\n\nBuilt on [`@abez/map-core`](https://github.com/lastninja294/geo-maps/tree/main/packages/core),\nthe shared engine also powering [`@abez/uzb-map`](https://www.npmjs.com/package/@abez/uzb-map).\nTypeScript-first. **Zero runtime dependencies.**\n\n## Install\n\n```bash\nnpm install @abez/kazakhstan-map\n```\n\nReact 17+ is a peer dependency; nothing else is required at runtime.\n\n## Quick start\n\n```tsx\nimport { KazakhstanMap } from '@abez/kazakhstan-map'\n\nexport function App() {\n  return <KazakhstanMap locale=\"en\" onRegionClick={(code) => console.log(code)} />\n}\n```\n\n## Choropleth\n\n```tsx\n<KazakhstanMap data={{ 'KZ-ALA': 98, 'KZ-AST': 95, 'KZ-MAN': 30 }} />\n```\n\nKeys are region codes (`\"KZ-ALA\"`) or, in `view=\"districts\"`, district codes.\n\n## Drill-down\n\n```tsx\nconst [focusRegion, setFocusRegion] = useState<string>()\n\n<KazakhstanMap\n  focusRegion={focusRegion}\n  onRegionClick={(code) => setFocusRegion(code)}\n  onDistrictClick={(code) => console.log('district', code)}\n/>\n```\n\n## Custom markers\n\n```tsx\nimport { KazakhstanMap, useProjectPoint, useMapScale } from '@abez/kazakhstan-map'\n\nfunction CapitalMarker() {\n  const project = useProjectPoint()\n  const scale = useMapScale()\n  const [x, y] = project([71.4491, 51.1694]) // Astana\n  return <circle cx={x} cy={y} r={4 / scale} fill=\"red\" />\n}\n\n<KazakhstanMap>\n  <CapitalMarker />\n</KazakhstanMap>\n```\n\n## Locales & metadata\n\n```tsx\nimport { getRegionMeta, getDistrictsByRegion } from '@abez/kazakhstan-map'\n\ngetRegionMeta('KZ-ALM') // { code, names: {kk,ru,en}, capital, population, populationYear, areaKm2, ... }\ngetDistrictsByRegion('KZ-ALM')\n```\n\nDistrict-level `population`/`areaKm2` are best-effort and largely\nunverified for this initial release — see `DATA_SOURCES.md` for exactly\nwhat's confirmed vs. estimated, and for two documented administrative-\nboundary gaps (Shymkent and the 2022 Abai/Jetisu/Ulytau split aren't yet\nreflected in the region geometry).\n\n## Data & attribution\n\nGeometry derived from [geoBoundaries](https://www.geoboundaries.org) KAZ\nADM1/ADM2 (Runfola et al. 2020, ODbL). See `DATA_SOURCES.md` for full\nattribution, known gaps, and the Astana geometry-synthesis note.\n","readmeFilename":"README.md"}