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 realistic Earth's pure parts

TIER_RADIUSconstant

The Earth's radius on the screen, in pixels, from which each tier is shown: the capitals 60, the cities of a million 170, those of 100,000 420.

Import it

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

Definition

const TIER_RADIUS: Readonly<Record<CityNameTier, number>> = { capitals: 60, "1m": 170, "100k": 420 }

Members

NameTypeDescription
capitalsnumber
1mnumber
100knumber

Examples

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

console.log(TIER_RADIUS.capitals, TIER_RADIUS["1m"], TIER_RADIUS["100k"]);
60 170 420

What it prints (run when this page was built)

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