{"_id":"@abez/turkmenistan-map","_rev":"2-1d143bec2187fcafb7e644b818476900","name":"@abez/turkmenistan-map","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@abez/turkmenistan-map","version":"0.1.0","keywords":["react","svg","map","turkmenistan","choropleth","geo","topojson"],"author":"","license":"MIT","_id":"@abez/turkmenistan-map@0.1.0","maintainers":[{"name":"lastninja294","email":"lastninja294@gmail.com"}],"homepage":"https://github.com/lastninja294/geo-maps/tree/main/packages/turkmenistan-map#readme","bugs":{"url":"https://github.com/lastninja294/geo-maps/issues"},"dist":{"shasum":"02a38711a18c9d197b1e350412eb742354844036","tarball":"https://registry.npmjs.org/@abez/turkmenistan-map/-/turkmenistan-map-0.1.0.tgz","fileCount":29,"integrity":"sha512-ewIjey03GqdQ3mJYUzG+386YjIXImSx3Q00Q2Pkz131yykoUW1a35Z2Uz0sc8S5Zge28Vaid0LPONKNVi14Ukg==","signatures":[{"sig":"MEYCIQDNW1QV6mFUcd+/lfzMKK7XZA/MyZcX8hoVcHLkJAPDqwIhAPNymvDzP7Tt3TDACFEvteBjp5VFzbK8+Gfr0VeZwgZT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":800608},"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/turkmenistan-map"},"_npmVersion":"10.9.4","description":"Customizable, accessible SVG map of Turkmenistan 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/turkmenistan-map_0.1.0_1787495871592_0.59440323927591","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@abez/turkmenistan-map","version":"0.1.1","description":"Customizable, accessible SVG map of Turkmenistan 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/turkmenistan-map"},"homepage":"https://abez-maps.vercel.app/turkmenistan","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","turkmenistan","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/turkmenistan-map@0.1.1","gitHead":"c85e41694a8790fed9858faff4bddf89ffc5018f","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-bOGJqFy3q0nhmglJ3ND9x81CQ0EMTCjjA97WKxodAgpL8DWTbmUsy+9MM8hT0ylua8jseuob9H3q96e8aM8AdA==","shasum":"fc98d5dbd5fc379827766487115ab21f69108039","tarball":"https://registry.npmjs.org/@abez/turkmenistan-map/-/turkmenistan-map-0.1.1.tgz","fileCount":29,"unpackedSize":800630,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDQlIIUBOskHUvJHR/YCcrXIhg2D/lsc9oRf1dJyp/QNwIgPjvJ6CjPBKDqp3dvHSC9FEF1f1O+1kfQ6MhGviP6dDk="}]},"_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/turkmenistan-map_0.1.1_1787569761153_0.1121976943013876"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-23T14:37:51.367Z","modified":"2026-08-24T11:09:21.502Z","0.1.0":"2026-08-23T14:37:51.749Z","0.1.1":"2026-08-24T11:09:21.296Z"},"bugs":{"url":"https://github.com/lastninja294/geo-maps/issues"},"license":"MIT","homepage":"https://abez-maps.vercel.app/turkmenistan","keywords":["react","svg","map","turkmenistan","choropleth","geo","topojson"],"repository":{"type":"git","url":"git+https://github.com/lastninja294/geo-maps.git","directory":"packages/turkmenistan-map"},"description":"Customizable, accessible SVG map of Turkmenistan 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/turkmenistan-map\n\n**[Live demo →](https://abez-maps.vercel.app/turkmenistan)**\n\nA customizable, accessible SVG map of Turkmenistan for React — 5 top-level\nregions and 59 districts, geometry from geoBoundaries, choropleth,\ndrill-down, and 3-locale built-in metadata (tk/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> **Ashgabat is not on this map.** geoBoundaries' current Turkmenistan\n> release has no polygon for the capital city at all -- not at the region\n> level or the district level. Every other current region/district is\n> present. See `DATA_SOURCES.md` for the full writeup.\n\n## Install\n\n```bash\nnpm install @abez/turkmenistan-map\n```\n\nReact 17+ is a peer dependency; nothing else is required at runtime.\n\n## Quick start\n\n```tsx\nimport { TurkmenistanMap } from '@abez/turkmenistan-map'\n\nexport function App() {\n  return <TurkmenistanMap locale=\"en\" onRegionClick={(code) => console.log(code)} />\n}\n```\n\n## Choropleth\n\n```tsx\n<TurkmenistanMap data={{ 'TM-A': 90, 'TM-M': 80, 'TM-B': 55 }} />\n```\n\nKeys are region codes (`\"TM-A\"`) or, in `view=\"districts\"`, district codes.\n\n## Drill-down\n\n```tsx\nconst [focusRegion, setFocusRegion] = useState<string>()\n\n<TurkmenistanMap\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 { TurkmenistanMap, useProjectPoint, useMapScale } from '@abez/turkmenistan-map'\n\nfunction CapitalMarker() {\n  const project = useProjectPoint()\n  const scale = useMapScale()\n  const [x, y] = project([63.5763, 39.0797]) // Mary\n  return <circle cx={x} cy={y} r={4 / scale} fill=\"red\" />\n}\n\n<TurkmenistanMap>\n  <CapitalMarker />\n</TurkmenistanMap>\n```\n\n## Locales & metadata\n\n```tsx\nimport { getRegionMeta, getDistrictsByRegion } from '@abez/turkmenistan-map'\n\ngetRegionMeta('TM-M') // { code, names: {tk,ru,en}, capital, population, populationYear, areaKm2, ... }\ngetDistrictsByRegion('TM-M')\n```\n\nDistrict-level `population`/`areaKm2` are best-effort -- 33 of 59 districts\nhave both confirmed (`verified: true`), notably higher coverage than this\nmonorepo's other country packages thanks to an unusually complete current\nWikipedia source table. See `DATA_SOURCES.md` for exactly what's confirmed\nvs. estimated vs. genuinely unknown (12 districts have no name at all in\nthe source data).\n\n## Data & attribution\n\nGeometry derived from [geoBoundaries](https://www.geoboundaries.org) TKM\nADM1/ADM2 (Runfola et al. 2020). See `DATA_SOURCES.md` for full\nattribution, the Ashgabat gap, and the unnamed-district placeholders.\n","readmeFilename":"README.md"}