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 · /world-geo

defaultconstant

The world, every country a region, as longitude and latitude in degrees.

Import it

import value from "@johnmorrisdotca/chizu/world-geo";

Definition

const worldGeo: WorldGeo

Members

NameTypeDescription
type"FeatureCollection"
features{ type: "Feature"; properties: { code: string; name: string; nameJa: string; iso3: string; group: string; groupJa?: string; }; geometry: { type: string; coordinates: unknown; }; }[]
sourcestring

Examples

import WORLD_GEO from "@johnmorrisdotca/chizu/world-geo";

const japan = WORLD_GEO.features.find((feature) => feature.properties.code === "JP")!;
console.log(WORLD_GEO.features.length, japan.properties.code, japan.properties.name, japan.properties.nameJa);
// 177 JP Japan 日本
177 JP Japan 日本

What it prints (run when this page was built)

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