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

readElementSetsfunction

Reads a source of element sets once: the list is frozen, a set that cannot be used is left out and counted, and a list of more than 200,000 is refused whole. It never throws: a source that fails is a failed read, and one the signal aborted is aborted.

Import it

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

Definition

function readElementSets(source: ElementRecordSource, signal: AbortSignal): Promise<ElementSetsRead>

Parameters

NameTypeDescription
sourceElementRecordSource

The source.

signalAbortSignal

Aborts the read.

Returns

Promise<ElementSetsRead>

The element sets and the count left out.

Examples

import { readElementSets, type ElementRecordSource } from "@johnmorrisdotca/chikyu-earth/door";

declare const source: ElementRecordSource;
const read = await readElementSets(source, new AbortController().signal);
console.log(read.records.length, read.skipped);

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