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 · Load maps and features

COUNTRY_CODESconstant

Every country that has a map of its own, by code, upper or lower case.

Import it

import { COUNTRY_CODES } from "@johnmorrisdotca/chizu/load";

Definition

const COUNTRY_CODES: readonly string[] = Object.keys(COUNTRY_LOADERS).map((code) => code.toUpperCase())

Examples

import { COUNTRY_CODES } from "@johnmorrisdotca/chizu/load";

console.log(COUNTRY_CODES.length, COUNTRY_CODES.includes("JP"));
// 238 true
238 true

What it prints (run when this page was built)

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