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

ChizuCityOptionstype

How the city layer is drawn: drawChizu's cityOptions.

Import it

import type { ChizuCityOptions } from "@johnmorrisdotca/chizu/cities";

Also exported from: @johnmorrisdotca/chizu

Definition

type ChizuCityOptions = {
    minPopulation?: number;
    labels?: boolean;
};

Members

NameTypeDescription
minPopulation (optional)number | undefined

Name only cities of at least this many people, at every zoom. Default: chosen from how much ground the window shows.

labels (optional)boolean | undefined

Print the names; false draws the dots alone. Default true.

Examples

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

const options: ChizuCityOptions = { minPopulation: 500_000 };
console.log(options.minPopulation);
// 500000
500000

What it prints (run when this page was built)

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