Skip to the content

Chizu地図

Draw SVG maps, frame regions, place numbered callouts and build geography quizzes with English and Japanese names.

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

Contents

Reference

Country names and groups

import { … } from "@johnmorrisdotca/chizu/names";

9.8 kB minified and gzipped, with everything it imports (measured with esbuild)

The name of every country, in English and Japanese, without any outlines: its own entry (@johnmorrisdotca/chizu/names), 52 kB (10 kB gzipped), for a page that lists countries, looks one up by code or by what somebody typed, or only needs to know which have a map of their own regions; and the seven continents and the UN M49 subregions, each with its countries.

Exports

NameKindWhat it is
CHIZU_CONTINENTSconstantThe seven continents, as kuni has them (UN M49 by way of CLDR): the Americas are two, and Central America and the Caribbean are in North America.
CHIZU_COUNTRIESconstantEvery country, with its names in English and Japanese, its reading, its continent and which maps have it.
CHIZU_SOURCEconstantWhere the data came from: Natural Earth's release and files, and the version of kuni the names were read from.
CHIZU_SUBREGIONSconstantThe twenty-two subregions of UN M49, as kuni has them, each with the countries of this table in it.
countriesFromTextfunctionThe countries a pasted list names, by English name, Japanese name, short Japanese name, reading or code, in the order written (placesFromText): countriesFromText("Japan, フランス\nBrazil").
countryByCodefunctionThe country with this code (upper or lower case), or undefined.

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