Skip to the content

Chizu地図

Draw SVG maps of the world, its 253 countries and the regions of 33 of them, frame them, place numbered callouts and build geography quizzes, with names in English and Japanese today (Spanish, German and Chinese are planned).

Chizu is the Japanese word 地図 for map. About the name

Contents

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

NameKindWhat it is
ChizuGeoCollectiontypeA map as longitude and latitude: the regions of one country, or the countries of the world, as a GeoJSON FeatureCollection with no projection.
ChizuGeoFeaturetypeOne region or country as a GeoJSON feature, in WGS84 [longitude, latitude] degrees: a Polygon or MultiPolygon.
ChizuGeoPropertiestypeThe 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_CODESconstantEvery 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.
loadDivisionsGeofunctionOne country's regions as longitude and latitude, loaded on demand (the file for that country only); null for a code with no regions.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chizu 1.17.0.