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

ChizuFeatureKindtype

What a named physical feature is: a kind of sea (ocean, sea, gulf, bay, strait, channel, sound, fjord, inlet, lagoon, reef), of lake (lake, reservoir), a river, a landform (desert, range, plateau, plain, peninsula, cape, basin, delta, valley, wetland, tundra, isthmus, depression, lowland, gorge, foothills), a peak, or a country's capital or a region's seat. Natural Earth's own classes, named as one word, and kuni's capitals.

Import it

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

Definition

type ChizuFeatureKind = "ocean" | "sea" | "gulf" | "bay" | "strait" | "channel" | "sound" | "fjord" | "inlet" | "lagoon" | "reef" | "lake" | "reservoir" | "river" | "desert" | "range" | "plateau" | "plain" | "peninsula" | "cape" | "basin" | "delta" | "valley" | "wetland" | "tundra" | "isthmus" | "depression" | "lowland" | "gorge" | "foothills" | "peak" | "capital" | "seat";

Examples

import { loadFeatures } from "@johnmorrisdotca/chizu/load";
import type { ChizuFeatureKind } from "@johnmorrisdotca/chizu";

const layer = (await loadFeatures("divisions-jp"))!;
const kinds: ChizuFeatureKind[] = [...new Set(layer.features.filter((one) => one.group === "marine").map((one) => one.kind))];
console.log(kinds.sort().join(" "));
// bay ocean sea strait
bay ocean sea strait

What it prints (run when this page was built)

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