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 globe as an SVG string

Styletype

The lines and fills of one look: colours and widths only, never the geometry.

Import it

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

Definition

interface Style {
    line: string;
    ocean: string;
    land: string;
    outline: number;
    horizon: number;
    graticule: number;
}

Members

NameTypeDescription
linestring

The colour of the outlines and the rim.

oceanstring

The disc of ocean.

landstring

The fill under a country's outline.

outlinenumber

Country outline width, in SVG units.

horizonnumber

Rim width, in SVG units.

graticulenumber

Graticule width, in SVG units.

Examples

import { STYLES, type Style } from "@johnmorrisdotca/chikyu-earth";

const thick: Style = STYLES.thick;
console.log(thick.outline, thick.line);
1.2 #b4c2d4

What it prints (run when this page was built)

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