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

CityNamesStyletype

The look of the city names, all optional: the text's font, size (pixels), weight and colour, the outline round it, and the dot's colour and radius (pixels).

Import it

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

Definition

interface CityNamesStyle {
    font?: string;
    size?: number;
    weight?: number | string;
    colour?: string;
    halo?: string;
    haloWidth?: number;
    dot?: string;
    dotSize?: number;
}

Members

NameTypeDescription
font (optional)string | undefined
size (optional)number | undefined
weight (optional)string | number | undefined
colour (optional)string | undefined
halo (optional)string | undefined
haloWidth (optional)number | undefined
dot (optional)string | undefined
dotSize (optional)number | undefined

Examples

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

const look: CityNamesStyle = { font: "Georgia, serif", size: 13, colour: "#ffe9b0", halo: "#201400", dot: "#ffd166", dotSize: 3 };
console.log(Object.keys(look).join(" "));
font size colour halo dot dotSize

What it prints (run when this page was built)

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