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

PackedElementsOptionstype

What packedElementsFrom can be told. Every one has a safe default.

Import it

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

Definition

interface PackedElementsOptions {
    maxBytes?: number;
    fetch?: typeof fetch;
}

Members

NameTypeDescription
maxBytes (optional)number | undefined

The most bytes of answer read (64 MB by default, the most a packed file may unpack to).

fetch (optional)((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined

The fetch function (the browser's by default).

Examples

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

const options: PackedElementsOptions = { maxBytes: 30_000_000 };
console.log(options.maxBytes);
30000000

What it prints (run when this page was built)

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