{"_id":"@abez/tajikistan-map","_rev":"2-c20f6034214d7847d94e1b6959df55e4","name":"@abez/tajikistan-map","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@abez/tajikistan-map","version":"0.1.0","keywords":["react","svg","map","tajikistan","choropleth","geo","topojson"],"author":"","license":"MIT","_id":"@abez/tajikistan-map@0.1.0","maintainers":[{"name":"lastninja294","email":"lastninja294@gmail.com"}],"homepage":"https://github.com/lastninja294/geo-maps/tree/main/packages/tajikistan-map#readme","bugs":{"url":"https://github.com/lastninja294/geo-maps/issues"},"dist":{"shasum":"0009a7598f0f20c0ec3f347a92c5fc317f063e91","tarball":"https://registry.npmjs.org/@abez/tajikistan-map/-/tajikistan-map-0.1.0.tgz","fileCount":29,"integrity":"sha512-9xrAJbBmwukeBj0yHVBx9wUp7v8qVItK+uYiWGxYfWFaJfrGPgrAaDtSQEqFqFDX/xZP1p9oV9ac0vhgr2MSbA==","signatures":[{"sig":"MEUCIQDbeM7SbqHBBLR83koxFo3ShiyjTZ1/IUeQKczD3D72eQIge3EDIid4HRAjqinkpnr/zGnkkqHqaMq5ebAGX8zJ3IM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1629898},"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/tajikistan-map"},"_npmVersion":"10.9.4","description":"Customizable, accessible SVG map of Tajikistan 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/tajikistan-map_0.1.0_1787495863528_0.9835962741272402","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@abez/tajikistan-map","version":"0.1.1","description":"Customizable, accessible SVG map of Tajikistan for React -- regions and districts, built-in metadata, choropleth, tooltips, and drill-down. Zero runtime dependencies.","license":"MIT","author":"","repository":{"type":"git","url":"git+https://github.com/lastninja294/geo-maps.git","directory":"packages/tajikistan-map"},"homepage":"https://abez-maps.vercel.app/tajikistan","bugs":{"url":"https://github.com/lastninja294/geo-maps/issues"},"type":"module","sideEffects":false,"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"keywords":["react","svg","map","tajikistan","choropleth","geo","topojson"],"scripts":{"build":"tsup","dev":"tsup --watch","typecheck":"tsc --noEmit","test":"vitest run","test:watch":"vitest","data:fetch":"node scripts/fetch-geoboundaries.mjs","data:build":"node scripts/build-topology.mjs","data:meta":"node scripts/build-metadata.mjs"},"peerDependencies":{"react":">=17.0.0"},"dependencies":{"@abez/map-core":"^0.1.0"},"publishConfig":{"access":"public"},"_id":"@abez/tajikistan-map@0.1.1","gitHead":"c85e41694a8790fed9858faff4bddf89ffc5018f","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-dzsuuPylAVAG9xOq30CBuUVwACmUa7+4tNFmT/I7/HbONhFMH63xVHF8i36yREo+BnwggbZzhFdqI9qJGEK/Wg==","shasum":"64c17a83f5998a47da683cee80d0fa3e40bf5651","tarball":"https://registry.npmjs.org/@abez/tajikistan-map/-/tajikistan-map-0.1.1.tgz","fileCount":29,"unpackedSize":1629918,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICdrNr1hBCmzWCRY6YpmjrGhF20ZK2crptQzmJqxX/SXAiEA6zvqcaNS/eYs0+febt1n/hGMja6ISXvoqAQkqE0PEgs="}]},"_npmUser":{"name":"lastninja294","email":"lastninja294@gmail.com"},"directories":{},"maintainers":[{"name":"lastninja294","email":"lastninja294@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tajikistan-map_0.1.1_1787569752452_0.9098787931568568"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-23T14:37:43.325Z","modified":"2026-08-24T11:09:12.803Z","0.1.0":"2026-08-23T14:37:43.727Z","0.1.1":"2026-08-24T11:09:12.613Z"},"bugs":{"url":"https://github.com/lastninja294/geo-maps/issues"},"license":"MIT","homepage":"https://abez-maps.vercel.app/tajikistan","keywords":["react","svg","map","tajikistan","choropleth","geo","topojson"],"repository":{"type":"git","url":"git+https://github.com/lastninja294/geo-maps.git","directory":"packages/tajikistan-map"},"description":"Customizable, accessible SVG map of Tajikistan 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/tajikistan-map\n\n**[Live demo →](https://abez-maps.vercel.app/tajikistan)**\n\nA customizable, accessible SVG map of Tajikistan for React — 5 top-level\nregions and 59 districts, geometry from geoBoundaries, choropleth,\ndrill-down, and 3-locale built-in metadata (tg/ru/en).\n\nBuilt on [`@abez/map-core`](https://github.com/lastninja294/geo-maps/tree/main/packages/core),\nthe shared engine also powering [`@abez/kazakhstan-map`](https://github.com/lastninja294/geo-maps/tree/main/packages/kazakhstan-map)\nand [`@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/tajikistan-map\n```\n\nReact 17+ is a peer dependency; nothing else is required at runtime.\n\n## Quick start\n\n```tsx\nimport { TajikistanMap } from '@abez/tajikistan-map'\n\nexport function App() {\n  return <TajikistanMap locale=\"en\" onRegionClick={(code) => console.log(code)} />\n}\n```\n\n## Choropleth\n\n```tsx\n<TajikistanMap data={{ 'TJ-SU': 98, 'TJ-KT': 95, 'TJ-GB': 30 }} />\n```\n\nKeys are region codes (`\"TJ-SU\"`) or, in `view=\"districts\"`, district codes.\n\n## Drill-down\n\n```tsx\nconst [focusRegion, setFocusRegion] = useState<string>()\n\n<TajikistanMap\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 { TajikistanMap, useProjectPoint, useMapScale } from '@abez/tajikistan-map'\n\nfunction CapitalMarker() {\n  const project = useProjectPoint()\n  const scale = useMapScale()\n  const [x, y] = project([68.7864, 38.5598]) // Dushanbe\n  return <circle cx={x} cy={y} r={4 / scale} fill=\"red\" />\n}\n\n<TajikistanMap>\n  <CapitalMarker />\n</TajikistanMap>\n```\n\n## Locales & metadata\n\n```tsx\nimport { getRegionMeta, getDistrictsByRegion } from '@abez/tajikistan-map'\n\ngetRegionMeta('TJ-SU') // { code, names: {tg,ru,en}, capital, population, populationYear, areaKm2, ... }\ngetDistrictsByRegion('TJ-SU')\n```\n\nDistrict-level `population`/`areaKm2` are best-effort — 47 of 59 districts\nhave both confirmed (`verified: true`), a notably higher completeness rate\nthan this monorepo's other country packages. See `DATA_SOURCES.md` for\nexactly what's confirmed vs. estimated, the note on Tajikistan's\nnon-uniform administrative structure (Districts of Republican Subordination\nhas no capital of its own), and the Dushanbe geometry-synthesis note.\n\n## Data & attribution\n\nGeometry derived from [geoBoundaries](https://www.geoboundaries.org) TJK\nADM1/ADM2 (Runfola et al. 2020, ODbL). See `DATA_SOURCES.md` for full\nattribution, the administrative-structure verification, and the Dushanbe\nsynthesis note.\n","readmeFilename":"README.md"}