Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

Reference · The globe as an SVG string

countryListfunction

Every country the globe draws, with its kuni name and code.

Import it

import { countryList } from "@johnmorrisdotca/chikyu-earth";

Definition

function countryList(): CountryProps[]

Returns

CountryProps[]

A list of English name, Japanese name (or null) and two-letter code (or null where a place has none).

Examples

import { countryList } from "@johnmorrisdotca/chikyu-earth";

console.log(countryList().find((country) => country.alpha2 === "JP"));
{ name: 'Japan', ja: '日本', alpha2: 'JP' }

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.11.0.