Reference
/divisions-geo
import { … } from "@johnmorrisdotca/chizu/divisions-geo";
1076.3 kB minified and gzipped, with everything it imports (measured with esbuild)
The regions of the 33 countries that have them, each as longitude and latitude in degrees (Natural Earth admin-1,
1:10m, simplified), for a globe or any spherical view: no projection, no boxes, and the border two regions share is
the same list of points in both. Its own entry, and each country its own file behind a dynamic import, so a page
pays only for the countries it loads. gb-2025 is the United Kingdom's councils of 2025 from the ONS, beside gb.
Exports
| Name | Kind | What it is |
|---|---|---|
ChizuGeoCollection | type | A map as longitude and latitude: the regions of one country, or the countries of the world, as a GeoJSON FeatureCollection with no projection. |
ChizuGeoFeature | type | One region or country as a GeoJSON feature, in WGS84 [longitude, latitude] degrees: a Polygon or MultiPolygon. |
ChizuGeoProperties | type | The properties of one feature of a map in longitude and latitude: a region's code (the same as in the flat map of the same country) and its ISO 3166-2 code, iso, where it has one, its names in English and Japanese; a country of the world also has iso3 and its larger part of the world, group and groupJa. |
DIVISIONS_GEO_CODES | constant | Every map of a country's regions as longitude and latitude, by code: the country's for the 33 countries that have one, and VN-2025 and GB-2025 for Vietnam's and the United Kingdom's of 2025, as in DIVISIONS_CODES. |
loadDivisionsGeo | function | One country's regions as longitude and latitude, loaded on demand (the file for that country only); null for a code with no regions. |