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 · Printable sheets: the globe and a world map to colour, my country, day and night, the seasons

dayNightSvgfunction

The day and night sheet: the Earth with the Sun's light coming from the right, the lit half left white (day) and the dark half hatched (night), the line between them thick, and three facts, for the date and time you give. The line is worked out from the package's own sun position.

Import it

import { dayNightSvg } from "@johnmorrisdotca/chikyu-earth/sheets";

Definition

function dayNightSvg(ms: number, options: SheetOptions): string

Parameters

NameTypeDescription
msnumber

The moment, in milliseconds since the Unix epoch.

optionsSheetOptions

The room, the language and the type.

Returns

string

The <svg> markup, carrying the place of the Sun as data-sun.

Examples

import { dayNightSvg } from "@johnmorrisdotca/chikyu-earth/sheets";

const svg = dayNightSvg(Date.UTC(2026, 5, 21, 12), { widthMm: 184.6, heightMm: 180 });
console.log(svg.includes("data-sun="), svg.includes("Night"));
true true

What it prints (run when this page was built)

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