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 Earth-orbit catalogue: orbit class, object kind, colours, fleets and the packed file format (no data)

legendfunction

The legend for colouring by class or by kind, in the page's language.

Import it

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

Definition

function legend(by: "class" | "kind", lang: "en" | "ja"): LegendEntry[]

Parameters

NameTypeDescription
by"kind" | "class"

class or kind.

lang"en" | "ja"

en or ja.

Returns

LegendEntry[]

One entry for each class or kind, in the legend's order.

Examples

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

console.log(legend("class", "en").map((one) => `${one.label} ${one.colour}`).join(", "));
console.log(legend("kind", "ja")[2]?.label);
Low orbit #5dd6a2, Medium orbit #ffd166, Geostationary #ef476f, Highly elliptical #b388eb, Other #9aa5b1
デブリ

What it prints (run when this page was built)

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