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
| Name | Type | Description |
|---|---|---|
capitals | number | |
1m | number | |
100k | number |
Examples
import { TIER_RADIUS } from "@johnmorrisdotca/chikyu-earth/realistic";
console.log(TIER_RADIUS.capitals, TIER_RADIUS["1m"], TIER_RADIUS["100k"]);60 170 420What it prints (run when this page was built)