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 · Printable sheets: the globe and a world map to colour, my country, day and night, the seasons

countryShapefunction

One country by its ISO alpha-2 code, for a "my country" sheet: its main land and the islands near it (a far territory such as French Guiana is left out), the continent it is in and the countries it touches.

Import it

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

Definition

function countryShape(alpha2: string): CountryShape | undefined

Parameters

NameTypeDescription
alpha2string

The two-letter code, such as JP.

Returns

CountryShape | undefined

The shape, or undefined when the package has no outline for the code.

Examples

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

const france = countryShape("FR");
console.log(france?.continent, france?.neighbours.length);
europe 6

What it prints (run when this page was built)

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