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

RecordSourcetype

A list that fits in memory (at most MAX_RECORDS records; bigger data must be tiles). It is read once, when the source is added. *

Import it

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

Definition

interface RecordSource<R> {
    kind: "records";
    info: SourceInfo;
    records(signal: AbortSignal): R[] | Promise<R[]>;
}

Members

NameTypeDescription
kind"records"
infoSourceInfo
records(signal: AbortSignal): R[] | Promise<R[]>

Examples

import type { RecordSource } from "./data-door.ts";

declare const info: import("./data-door.ts").SourceInfo;
const source: RecordSource<{ id: string }> = { kind: "records", info, records: () => [{ id: "a" }] };

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