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

creditsOffunction

The credits of a view for the last drawn frame: the package's own first, then the sources a caller added, each with the marks or tiles it gave; a source that gave none is left out.

Import it

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

Definition

function creditsOf(own: readonly Credit[], book: SourceBook, used: ReadonlyMap<string, number>): Credit[]

Parameters

NameTypeDescription
ownreadonly Credit[]

The package's own credits (ownCredit), with how many marks each gave.

bookSourceBook

The view's sources.

usedReadonlyMap<string, number>

How many marks or tiles each source of the book gave, by id.

Returns

Credit[]

The credits, own first, in a stable order.

Examples

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

const book = createSourceBook();
console.log(creditsOf([ownCredit("chikyu-pictures", 1)], book, new Map()).length);
1

What it prints (run when this page was built)

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