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

CityNametype

A city to name: where its dot is, the text to write and where the text's box goes (its top left corner and size).

Import it

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

Definition

interface CityName {
    city: NamedCity;
    text: string;
    x: number;
    y: number;
    left: number;
    top: number;
    width: number;
    height: number;
}

Members

NameTypeDescription
cityNamedCity
textstring
xnumber
ynumber
leftnumber
topnumber
widthnumber
heightnumber

Examples

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

const place = (one: CityName): string => `${one.text} at ${one.left}, ${one.top}`;
console.log(typeof place);
function

What it prints (run when this page was built)

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