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 · Framing, geometry and quiz tools

ChizuPortOptionstype

How the marks are chosen and drawn: drawChizu's portOptions.

Import it

import type { ChizuPortOptions } from "@johnmorrisdotca/chizu";

Definition

type ChizuPortOptions = {
    tier?: 1 | 2 | 3;
    kinds?: readonly ChizuPort["kind"][];
};

Members

NameTypeDescription
tier (optional)1 | 2 | 3 | undefined

Draw the places of this tier and the tiers above it, at every zoom. Default: chosen from how much ground the window shows.

kinds (optional)readonly ("airport" | "harbour")[] | undefined

Draw only these kinds. Default both.

Examples

import type { ChizuPortOptions } from "@johnmorrisdotca/chizu";

const options: ChizuPortOptions = { tier: 1, kinds: ["airport"] };
console.log(options.tier);
// 1
1

What it prints (run when this page was built)

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