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

CountryPropstype

What one country's outline carries: its English and Japanese name and its ISO alpha-2 code, all from kuni.

Import it

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

Definition

interface CountryProps {
    name: string;
    ja: string | null;
    alpha2: string | null;
}

Members

NameTypeDescription
namestring

English name, from kuni (Natural Earth's own name where kuni has no entry).

jastring | null

Japanese name, from kuni, or null.

alpha2string | null

ISO 3166-1 alpha-2 code, from kuni, or null where there is no code.

Examples

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

const first: CountryProps | undefined = countryList()[0];
console.log(first?.name, first?.alpha2);
Fiji FJ

What it prints (run when this page was built)

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