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 · Markers on the globe

GroupInfotype

One group of markers: its name, how many it holds and whether it is shown.

Import it

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

Definition

interface GroupInfo {
    name: string;
    count: number;
    visible: boolean;
}

Members

NameTypeDescription
namestring
countnumber
visibleboolean

Examples

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

const show = (groups: GroupInfo[]): string => groups.map((group) => `${group.name}: ${group.count}${group.visible ? "" : " (hidden)"}`).join(", ");
console.log(show([{ name: "Cities", count: 3, visible: true }]));
Cities: 3

What it prints (run when this page was built)

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