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 data door: hand the package your own maps of the Earth or orbit data as a source with its own licence and credit, and see whose data is on the screen

ownCreditfunction

The credit of one of the package's own sources, for a page that draws something itself: the elements credit their own pictures and tiles in credits(), and a page that draws the Earth from the package's pictures puts ownCredit("chikyu-pictures", 1) in its credit line.

Import it

import { ownCredit } from "@johnmorrisdotca/chikyu-earth/door";

Definition

function ownCredit(id: string, used: number): Credit

Parameters

NameTypeDescription
idstring

chikyu-pictures or chikyu-tiles.

usednumber

How many marks were drawn from it.

Returns

Credit

The credit, marked as the package's own.

Examples

import { creditLine, ownCredit } from "@johnmorrisdotca/chikyu-earth/door";

console.log(creditLine([ownCredit("chikyu-tiles", 6)], "en"));
Finer map tiles: NASA Earth Observatory (Blue Marble: Next Generation; Black Marble, Suomi NPP VIIRS data), cut by Chikyu Earth (Public domain).

What it prints (run when this page was built)

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