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

cityPopulationFloorfunction

The smallest city named in a window that shows kilometres of ground across: five million people on the whole world, falling with the ground shown, to 15,000 when a window shows 400 km.

Import it

import { cityPopulationFloor } from "@johnmorrisdotca/chizu";

Definition

function cityPopulationFloor(kilometres: number): number

Parameters

NameTypeDescription
kilometresnumber

The ground the window shows across, in kilometres.

Returns

number

The smallest population named.

Examples

import { cityPopulationFloor } from "@johnmorrisdotca/chizu";

console.log(cityPopulationFloor(400));
// 15000
15000

What it prints (run when this page was built)

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