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 · /harbours

HARBOURSconstant

Natural Earth's 1,081 ports, largest first, each with a tier: 1 for its sizes 3 and 4, 2 for 5, 3 for the rest.

Import it

import { HARBOURS } from "@johnmorrisdotca/chizu/harbours";

Definition

const HARBOURS: readonly ChizuPort[] = data

Examples

import { HARBOURS } from "@johnmorrisdotca/chizu/harbours";

const yokohama = HARBOURS.find((harbour) => harbour.id === "yokohama")!;
console.log(HARBOURS.length, yokohama.name.ja, yokohama.country);
// 1081 横浜港 JP
1081 横浜港 JP

What it prints (run when this page was built)

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